@capgo/capacitor-alarm 8.1.8 → 8.1.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
|
@@ -1,12 +1,28 @@
|
|
|
1
1
|
# @capgo/capacitor-alarm
|
|
2
|
-
|
|
2
|
+
|
|
3
|
+
Create real alarms in the system clock from your Capacitor app: AlarmKit on iOS 26 and later and the Alarm Clock intent on Android. Alarm and reminder apps get alarms that ring like the built-in clock.
|
|
4
|
+
|
|
5
|
+
<a href="https://capgo.app/?ref=plugin_alarm"><img src="https://capgo.app/readme-banner.svg?repo=Cap-go/capacitor-alarm" alt="Capgo - Instant updates for Capacitor" /></a>
|
|
3
6
|
|
|
4
7
|
<div align="center">
|
|
5
|
-
<
|
|
6
|
-
<h2><a href="https://capgo.app/
|
|
8
|
+
<p><b>Capgo</b>: open-source live updates for Ionic and Capacitor apps. Ship OTA fixes and features instantly, without waiting for app store review.</p>
|
|
9
|
+
<h2><a href="https://capgo.app/register/?ref=plugin_alarm">➡️ Get started for free</a></h2>
|
|
10
|
+
<p>14-day unlimited free trial. No credit card required</p>
|
|
11
|
+
<p><a href="https://capgo.app/consulting/?ref=plugin_alarm">Missing a feature? We'll build the plugin for you 💪</a></p>
|
|
7
12
|
</div>
|
|
8
13
|
|
|
9
|
-
|
|
14
|
+
<p align="center">
|
|
15
|
+
<img src="https://raw.githubusercontent.com/Cap-go/capacitor-alarm/main/assets/github-social-preview.png" alt="@capgo/capacitor-alarm for Capacitor apps" width="300" />
|
|
16
|
+
</p>
|
|
17
|
+
|
|
18
|
+
## Key features
|
|
19
|
+
|
|
20
|
+
- **Native alarms**: `createAlarm()` adds an alarm through AlarmKit on iOS 26 and later, or through the platform clock app on Android.
|
|
21
|
+
- **Alarm list**: `openAlarms()` opens the system alarm UI where available.
|
|
22
|
+
- **Manage on iOS**: `getAlarms()` and `cancelAlarm()` list and remove alarms created by your app on iOS 26 and later.
|
|
23
|
+
- **Capabilities**: `getOSInfo()` reports what the current OS supports.
|
|
24
|
+
- **Permissions**: `checkPermissions()` and `requestPermissions()`, including exact alarm access on Android.
|
|
25
|
+
- **Platforms**: iOS and Android. Listing and cancelling alarms is iOS only. Not available on web.
|
|
10
26
|
|
|
11
27
|
## Why Capacitor Alarm?
|
|
12
28
|
|
|
@@ -15,7 +15,7 @@ import com.getcapacitor.annotation.CapacitorPlugin;
|
|
|
15
15
|
@CapacitorPlugin(name = "CapgoAlarm")
|
|
16
16
|
public class CapgoAlarmPlugin extends Plugin {
|
|
17
17
|
|
|
18
|
-
private final String pluginVersion = "8.1.
|
|
18
|
+
private final String pluginVersion = "8.1.10";
|
|
19
19
|
private static final String TAG = "CapgoAlarmPlugin";
|
|
20
20
|
|
|
21
21
|
// ===== Native OS Alarm helpers (Android) =====
|
|
@@ -7,7 +7,7 @@ import Capacitor
|
|
|
7
7
|
*/
|
|
8
8
|
@objc(CapgoAlarmPlugin)
|
|
9
9
|
public class CapgoAlarmPlugin: CAPPlugin, CAPBridgedPlugin {
|
|
10
|
-
private let pluginVersion: String = "8.1.
|
|
10
|
+
private let pluginVersion: String = "8.1.10"
|
|
11
11
|
public let identifier = "CapgoAlarmPlugin"
|
|
12
12
|
public let jsName = "CapgoAlarm"
|
|
13
13
|
public let pluginMethods: [CAPPluginMethod] = [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@capgo/capacitor-alarm",
|
|
3
|
-
"version": "8.1.
|
|
3
|
+
"version": "8.1.10",
|
|
4
4
|
"description": "Manage native alarm Capacitor plugin",
|
|
5
5
|
"main": "dist/plugin.cjs.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -46,6 +46,7 @@
|
|
|
46
46
|
"watch": "tsc --watch",
|
|
47
47
|
"prepublishOnly": "npm run build",
|
|
48
48
|
"check:wiring": "node scripts/check-capacitor-plugin-wiring.mjs",
|
|
49
|
+
"check:cap9-deprecated": "node scripts/check-cap9-deprecated.mjs",
|
|
49
50
|
"example:install": "cd example-app && bun install --frozen-lockfile",
|
|
50
51
|
"example:build": "bun run build && cd example-app && bun install --frozen-lockfile && bun run build",
|
|
51
52
|
"changelog:ai": "node scripts/generate-ai-changelog.mjs"
|