-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Android 14 SCHEDULE_EXACT_ALARM permission required. Permission is now defaulted to false even with manifest tag. #15
Comments
Yeah, this needs some code to resolve this for us developers. |
Any update on this? |
So, the best I have managed to come up with is to use the mixon plugin for notifications, use the @havesource push notification plugin to create the channel for custom sounds and then there's another plugin that handles just the permissions on Android 14. I still have to test it all but I know mixon works so far and the channels I'm using for custom push sounds so everything should work. Be next week before I can get back to this one. |
Here's my solution. I added some lines in dummyNotifications() to call the new Alarms and Reminders settings page. The user enables a toggle there and then notifications work on Android 14. I'm not much of a Java programmer but this works. In platforms/android/app/src/main/java/de/appplant/cordova/plugin/localnotification/LocalNotification.java Add this near the top: After this section:
Add these lines:
|
Any update on this? |
Android 14+ schedule notifications will not fire unless the permission is explicitly allowed.
More info here: https://developer.android.com/training/scheduling/alarms#using-schedule-exact-permission.
It's not really an issue with this plugin. It's just a new requirement for Android 14+ to get the permission explicitly before any scheduling is permitted.
The text was updated successfully, but these errors were encountered: