From 717efb087b8d2682441e6f970a457504793e7d06 Mon Sep 17 00:00:00 2001 From: Trent Larson Date: Fri, 6 Mar 2026 21:16:49 -0700 Subject: [PATCH] remove USE_EXACT_ALARM in Android --- android/app/src/main/AndroidManifest.xml | 1 - doc/daily-notification-plugin-android-receiver-issue.md | 8 +++++++- doc/daily-notification-plugin-checklist.md | 9 ++++++++- 3 files changed, 15 insertions(+), 3 deletions(-) diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml index 00b7c623..239c94ae 100644 --- a/android/app/src/main/AndroidManifest.xml +++ b/android/app/src/main/AndroidManifest.xml @@ -102,7 +102,6 @@ - diff --git a/doc/daily-notification-plugin-android-receiver-issue.md b/doc/daily-notification-plugin-android-receiver-issue.md index dfa6631b..79e286bc 100644 --- a/doc/daily-notification-plugin-android-receiver-issue.md +++ b/doc/daily-notification-plugin-android-receiver-issue.md @@ -205,9 +205,15 @@ intent.putExtra("scheduleId", scheduleId) // if receiver expects different key ### Permissions (App Side) - ✅ POST_NOTIFICATIONS - ✅ SCHEDULE_EXACT_ALARM -- ✅ USE_EXACT_ALARM - ✅ RECEIVE_BOOT_COMPLETED - ✅ WAKE_LOCK +- ❌ USE_EXACT_ALARM -- must not use; see note below + +> **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. --- diff --git a/doc/daily-notification-plugin-checklist.md b/doc/daily-notification-plugin-checklist.md index 2d6024ee..f92ca08c 100644 --- a/doc/daily-notification-plugin-checklist.md +++ b/doc/daily-notification-plugin-checklist.md @@ -16,12 +16,19 @@ - [x] Created `src/services/notifications/index.ts` ### Android Configuration + +> **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. + - [x] Added permissions to `AndroidManifest.xml`: - [x] `POST_NOTIFICATIONS` - [x] `SCHEDULE_EXACT_ALARM` - - [x] `USE_EXACT_ALARM` - [x] `RECEIVE_BOOT_COMPLETED` - [x] `WAKE_LOCK` + - [ ] `USE_EXACT_ALARM` -- must avoid; see note above - [x] Registered receivers in `AndroidManifest.xml`: - [x] `DailyNotificationReceiver` - [x] `BootReceiver`