@capgo/capacitor-alarm 7.3.8 → 7.3.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -8,6 +8,17 @@
|
|
|
8
8
|
|
|
9
9
|
Manage native alarm Capacitor plugin
|
|
10
10
|
|
|
11
|
+
## Why Capacitor Alarm?
|
|
12
|
+
|
|
13
|
+
The only plugin implementing the **latest native alarm APIs** for both iOS and Android:
|
|
14
|
+
|
|
15
|
+
- **iOS 26+ AlarmKit** - Full integration with Apple's new alarm framework
|
|
16
|
+
- **Android AlarmClock intents** - Modern alarm management following OEM policies
|
|
17
|
+
- **Future-proof** - Built on the newest platform APIs, not deprecated methods
|
|
18
|
+
- **Cross-platform** - Consistent API across iOS and Android
|
|
19
|
+
|
|
20
|
+
Essential for alarm clock apps, reminder apps, medication trackers, and any app needing native system alarms.
|
|
21
|
+
|
|
11
22
|
## Documentation
|
|
12
23
|
|
|
13
24
|
The most complete doc is available here: https://capgo.app/docs/plugins/alarm/
|
|
@@ -14,7 +14,7 @@ import com.getcapacitor.annotation.CapacitorPlugin;
|
|
|
14
14
|
@CapacitorPlugin(name = "CapgoAlarm")
|
|
15
15
|
public class CapgoAlarmPlugin extends Plugin {
|
|
16
16
|
|
|
17
|
-
private final String
|
|
17
|
+
private final String pluginVersion = "7.3.10";
|
|
18
18
|
|
|
19
19
|
// ===== Native OS Alarm helpers (Android) =====
|
|
20
20
|
@PluginMethod
|
|
@@ -111,7 +111,7 @@ public class CapgoAlarmPlugin extends Plugin {
|
|
|
111
111
|
public void getPluginVersion(final PluginCall call) {
|
|
112
112
|
try {
|
|
113
113
|
final JSObject ret = new JSObject();
|
|
114
|
-
ret.put("version", this.
|
|
114
|
+
ret.put("version", this.pluginVersion);
|
|
115
115
|
call.resolve(ret);
|
|
116
116
|
} catch (final Exception e) {
|
|
117
117
|
call.reject("Could not get plugin version", e);
|
|
@@ -7,7 +7,7 @@ import Capacitor
|
|
|
7
7
|
*/
|
|
8
8
|
@objc(CapgoAlarmPlugin)
|
|
9
9
|
public class CapgoAlarmPlugin: CAPPlugin, CAPBridgedPlugin {
|
|
10
|
-
private let
|
|
10
|
+
private let pluginVersion: String = "7.3.10"
|
|
11
11
|
public let identifier = "CapgoAlarmPlugin"
|
|
12
12
|
public let jsName = "CapgoAlarm"
|
|
13
13
|
public let pluginMethods: [CAPPluginMethod] = [
|
|
@@ -68,7 +68,7 @@ public class CapgoAlarmPlugin: CAPPlugin, CAPBridgedPlugin {
|
|
|
68
68
|
// No data conversion helpers needed for native-only operations
|
|
69
69
|
|
|
70
70
|
@objc func getPluginVersion(_ call: CAPPluginCall) {
|
|
71
|
-
call.resolve(["version": self.
|
|
71
|
+
call.resolve(["version": self.pluginVersion])
|
|
72
72
|
}
|
|
73
73
|
|
|
74
74
|
}
|