From 93bf46e510d6aee3c49433cf4c144783975bbf48 Mon Sep 17 00:00:00 2001 From: jcesarmobile Date: Mon, 11 Dec 2023 19:15:30 +0100 Subject: [PATCH 1/2] regenerate README --- local-notifications/README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/local-notifications/README.md b/local-notifications/README.md index 9006c5433..e4b34ecde 100644 --- a/local-notifications/README.md +++ b/local-notifications/README.md @@ -336,7 +336,10 @@ Direct user to the application settings screen to configure exact alarms. In the event that a user changes the settings from granted to denied, the application will restart and any notification scheduled with an exact alarm will be deleted. -Only available on Android >= 12. +On Android < 12, the user will NOT be directed to the application settings screen, instead this function will +return `granted`. + +Only available on Android. **Returns:** Promise<SettingsPermissionStatus> From f5322e0fe4e4e1daf9507a82e3570651c6fcc4aa Mon Sep 17 00:00:00 2001 From: jcesarmobile Date: Tue, 12 Dec 2023 15:07:02 +0100 Subject: [PATCH 2/2] Update local-notifications/README.md --- local-notifications/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/local-notifications/README.md b/local-notifications/README.md index e4b34ecde..fcd0eb420 100644 --- a/local-notifications/README.md +++ b/local-notifications/README.md @@ -20,7 +20,7 @@ Starting on Android 12, scheduled notifications won't be exact unless this permi ``` -Note that even if the permission is present, users can still disable exact notifications from the app settings. Use `checkExactNotificationSetting()` to check the the value of the setting. If a user disables this setting, the app will restart and any notification scheduled with an exact alarm will be deleted. If your application depends on exact alarms, be sure to check this setting on app launch (for example, in [`App.appStateChange`](https://capacitorjs.com/docs/apis/app#addlistenerappstatechange-)) in order provide fallbacks or alternative behavior. +Note that even if the permission is present, users can still disable exact notifications from the app settings. Use `checkExactNotificationSetting()` to check the the value of the setting. If a user disables this setting, the app will restart and any notification scheduled with an exact alarm will be deleted. If your application depends on exact alarms, be sure to check this setting on app launch (for example, in [`App.appStateChange`](https://capacitorjs.com/docs/apis/app#addlistenerappstatechange-)) in order to provide fallbacks or alternative behavior. On Android 14, there is a new permission called `USE_EXACT_ALARM`. Use this permission to use exact alarms without needing to request permission from the user. This should only be used if the use of exact alarms is central to your app's functionality. Read more about the implications of using this permission [here](https://developer.android.com/reference/android/Manifest.permission#USE_EXACT_ALARM).