raix-push
raix-push copied to clipboard
Configuring/allowing push notifications later in app (NOT startup)
Is it possible to delay the access request "This app would like to send you push notifications"?
Instead of doing this on app startup, I'd like to do this during my onboarding flow (justifying why we give notifications). Thanks!
This should be possible to implement in the new cordova plugin - we need to bump the dependency and add in an option for it and a register function
@raix thanks for the note - does simply calling Push.configure(options) later in the app accomplish this? By doing this, I'm able to trigger the access request later, but not sure whether I need Push.configure at startup as well.
+1
+1. Any news here?
I'm thinking that calling Push.Configure when needed will do the trick - but I haven't tried it my self - and you might want to use the 3.0.3-rc.5
(I think the later versions of the cordova plugin supports this)
Push.Configure does work. How can you check if that user has allowed push already?
Edit: Check if the user has already answered. https://github.com/phonegap/phonegap-plugin-push/blob/master/docs/API.md#example-1