capacitor-plugins
capacitor-plugins copied to clipboard
feat(localnotifications): support Android 13+ permissions
This adds support for explicitly checking and requesting POST_NOTIFICATIONS permissions for Android 13 and above (SDK 33)
Tested it on Android 13 and works as expected. Android < 13 works as previously.
Resolves #1116
Thanks for the PR, but we won't be merging it anytime soon. I've verified that local notifications are still working fine on Android 13 as long as the app targets SDK 32, which is the officially supported SDK on Capacitor 4. So this won't be merged until we start working on Capacitor 5 which will target SDK 33.
Thanks for the PR, but we won't be merging it anytime soon. I've verified that local notifications are still working fine on Android 13 as long as the app targets SDK 32, which is the officially supported SDK on Capacitor 4. So this won't be merged until we start working on Capacitor 5 which will target SDK 33.
Thanks for taking a look at this. The reason for this PR is that if you target SDK 32 then the permission is triggered at application launch and not when requested on an Android device running Android 13. Timely asking for permissions is encouraged in both platforms so this might be an issue for some apps until Capacitor 5 is released.
@masimplo please update with main so we can merge please and thank you!