Question

Is there any way I could make the "Would you like to enable push notifications..." dialogue not to come up upon first time application launch but rather on some other action in the application?

Regardz, Mladen

Was it helpful?

Solution

The dialog should not appear until you call the method registerForRemoteNotificationTypes. I assume you're calling it in appDidFinishLoading at the moment? Just move it to the part of your application that is relevant to Push Notifications.

It's a similar situation with CoreLocation. It can confuse the user if you request the users location before your application has indicated why it needs it.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top