I'm stuck and would greatly appreciate your help.
Details
- I have a working React/Cordova app.
- I'm using PubNub to publish APNS and FCM notifications.
- I'm using cordova-plugin-device to obtain the device UUID.
I need to request permission from the user to allow push notifications.
How do I do that for Android and iOS, respectively?
I've tried cordova-plugin-firebase, cordova-plugin-firebasex, and phonegap-plugin-push but they aren't working with cordova@9.x and are overkill for my purposes. I just want to ask for push notification permission, not send notifications directly from the device.
Is there an easy or simple way to do this for iOS and Android with Cordova?