raix-push icon indicating copy to clipboard operation
raix-push copied to clipboard

Configuring/allowing push notifications later in app (NOT startup)

Open kartikTT opened this issue 8 years ago • 6 comments

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!

kartikTT avatar Mar 03 '16 21:03 kartikTT

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 avatar Mar 03 '16 21:03 raix

@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.

kartikTT avatar Mar 03 '16 22:03 kartikTT

+1

mjaensch avatar Apr 21 '16 17:04 mjaensch

+1. Any news here?

jgontrum avatar Jun 02 '16 18:06 jgontrum

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)

raix avatar Jun 04 '16 06:06 raix

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

kylepierce avatar Nov 21 '16 21:11 kylepierce