From 1dc0052b392a8604ed430c2b978a51d3606ca45f Mon Sep 17 00:00:00 2001 From: Trent Larson Date: Fri, 6 Mar 2026 21:11:27 -0700 Subject: [PATCH] remove references to USE_EXACT_ALARM for Android --- README.md | 1 - docs/GETTING_STARTED.md | 7 ++++++- docs/ai/AI_INTEGRATION_GUIDE.md | 1 - docs/integration/INTEGRATION_GUIDE.md | 1 - docs/integration/QUICK_START.md | 1 - docs/platform/android/TIMESAFARI_ANDROID_COMPARISON.md | 2 -- docs/platform/ios/MIGRATION_GUIDE.md | 3 +-- src/android/timesafari-android-config.ts | 7 ------- .../android-test-app/app/src/main/AndroidManifest.xml | 1 - .../android/app/src/main/AndroidManifest.xml | 1 - 10 files changed, 7 insertions(+), 18 deletions(-) diff --git a/README.md b/README.md index fbbfaa4..9d5627e 100644 --- a/README.md +++ b/README.md @@ -559,7 +559,6 @@ await DailyNotification.updateDailyReminder('morning_checkin', { ```xml - diff --git a/docs/GETTING_STARTED.md b/docs/GETTING_STARTED.md index 522a681..aa14936 100644 --- a/docs/GETTING_STARTED.md +++ b/docs/GETTING_STARTED.md @@ -64,9 +64,14 @@ func application(_ application: UIApplication, ```xml - ``` +> **Note on `USE_EXACT_ALARM`:** The `USE_EXACT_ALARM` permission is restricted +> by Google on Android. Apps that declare it must be primarily dedicated to alarm +> or calendar functionality. Google will reject apps from the Play Store that use +> this permission for other purposes. This plugin uses `SCHEDULE_EXACT_ALARM` +> instead, which is sufficient for scheduling daily notifications. + 2. **Register WorkManager in `Application.kt`:** ```kotlin diff --git a/docs/ai/AI_INTEGRATION_GUIDE.md b/docs/ai/AI_INTEGRATION_GUIDE.md index 9c50b9e..513de4d 100644 --- a/docs/ai/AI_INTEGRATION_GUIDE.md +++ b/docs/ai/AI_INTEGRATION_GUIDE.md @@ -119,7 +119,6 @@ cat android/app/src/main/assets/capacitor.plugins.json | grep DailyNotification - diff --git a/docs/integration/INTEGRATION_GUIDE.md b/docs/integration/INTEGRATION_GUIDE.md index aed10dc..a4448ff 100644 --- a/docs/integration/INTEGRATION_GUIDE.md +++ b/docs/integration/INTEGRATION_GUIDE.md @@ -497,7 +497,6 @@ Add required permissions to `android/app/src/main/AndroidManifest.xml`: - diff --git a/docs/integration/QUICK_START.md b/docs/integration/QUICK_START.md index 45d82c0..1dd219c 100644 --- a/docs/integration/QUICK_START.md +++ b/docs/integration/QUICK_START.md @@ -50,7 +50,6 @@ Add to `android/app/src/main/AndroidManifest.xml`: - diff --git a/docs/platform/android/TIMESAFARI_ANDROID_COMPARISON.md b/docs/platform/android/TIMESAFARI_ANDROID_COMPARISON.md index d602074..d718f6e 100644 --- a/docs/platform/android/TIMESAFARI_ANDROID_COMPARISON.md +++ b/docs/platform/android/TIMESAFARI_ANDROID_COMPARISON.md @@ -123,7 +123,6 @@ Add `DailyNotification` configuration to `capacitor.config.ts` with appropriate - ✅ `INTERNET` - ✅ `POST_NOTIFICATIONS` - ✅ `SCHEDULE_EXACT_ALARM` -- ✅ `USE_EXACT_ALARM` - ✅ `RECEIVE_BOOT_COMPLETED` - ✅ `WAKE_LOCK` - ❌ `ACCESS_NETWORK_STATE` - **MISSING** @@ -335,7 +334,6 @@ public class TimeSafariNativeFetcher implements NativeNotificationContentFetcher - diff --git a/docs/platform/ios/MIGRATION_GUIDE.md b/docs/platform/ios/MIGRATION_GUIDE.md index 2946db9..90c507a 100644 --- a/docs/platform/ios/MIGRATION_GUIDE.md +++ b/docs/platform/ios/MIGRATION_GUIDE.md @@ -35,7 +35,7 @@ This migration guide helps you transition from the basic daily notification plug - **Minimum SDK**: API 21 (Android 5.0) - **Target SDK**: API 34 (Android 14) -- **Permissions**: `POST_NOTIFICATIONS`, `SCHEDULE_EXACT_ALARM`, `USE_EXACT_ALARM` +- **Permissions**: `POST_NOTIFICATIONS`, `SCHEDULE_EXACT_ALARM` - **Dependencies**: Room 2.6.1+, WorkManager 2.9.0+ #### iOS @@ -169,7 +169,6 @@ console.log('Performance:', status.performance); - diff --git a/src/android/timesafari-android-config.ts b/src/android/timesafari-android-config.ts index 019277a..4bded77 100644 --- a/src/android/timesafari-android-config.ts +++ b/src/android/timesafari-android-config.ts @@ -187,13 +187,6 @@ export const DEFAULT_TIMESAFARI_ANDROID_CONFIG: TimeSafariAndroidConfig = { runtime: true, category: 'alarm' }, - { - name: 'android.permission.USE_EXACT_ALARM', - description: 'Allow TimeSafari to use exact alarms', - required: false, - runtime: false, - category: 'alarm' - }, { name: 'android.permission.WAKE_LOCK', description: 'Allow TimeSafari to keep device awake for background tasks', diff --git a/test-apps/android-test-app/app/src/main/AndroidManifest.xml b/test-apps/android-test-app/app/src/main/AndroidManifest.xml index df04067..c6cf9d2 100644 --- a/test-apps/android-test-app/app/src/main/AndroidManifest.xml +++ b/test-apps/android-test-app/app/src/main/AndroidManifest.xml @@ -75,5 +75,4 @@ - diff --git a/test-apps/daily-notification-test/android/app/src/main/AndroidManifest.xml b/test-apps/daily-notification-test/android/app/src/main/AndroidManifest.xml index 88187ed..0af85ab 100644 --- a/test-apps/daily-notification-test/android/app/src/main/AndroidManifest.xml +++ b/test-apps/daily-notification-test/android/app/src/main/AndroidManifest.xml @@ -75,7 +75,6 @@ -