capacitor-community / capacitor-community/background-geolocation
POST_NOTIFICATION permission in Android
- Dominant language
- Java
- Stars
- 249
- Forks
- 79
- PR merge metrics
- No merged PRs in 30d
Description
This is more of a discussion than an issue I guess.
I've read the readme about adding the POST_NOTIFICATION using the notification plugin and it felt like an overkill.
Moreover, I tend to think it should be part of this plugin to allow requesting this permission.
In the plugin I maintain, I found out that you can't request all the location and notification permissions at the same time, but rather only the location together and then the notification (otherwise some Android devices get stuck).
I know adding an API call `requestNotificationPermission` has nothing to do with iOS, so I'm not sure what should be the right course of action.
In my plugin, since Android 13 and above are getting more popular, I added the request for permission in the android code for all users, it calls it after the location permission was granted.
See issue here:
https://github.com/HaylLtd/cordova-background-geolocation-plugin/issues/186
I'm not sure what should be the right approach here.
Let me know what you think.
Contributor guide
Assessment
This issue has not been assessed yet.