Question

I know that there is no possibility the permission dialog itself can be customized or disabled as long as the application is push enabled. But I wonder if its popup time can be postponed.

I have seen Candy Crush Saga does so.

The permission dialog does not appear until you reach a level when a customize dialog popup and ask if you would like to receive notifications from Candy Crush Saga, if you press OK, then comes the iOS standard permission dialog for push notifications.

Was it helpful?

Solution

When you call registerForRemoteNotificationTypes: for the first time the dialog will be shown. So, don't call it until you need it.

Also, consider asking the user / informing the user what they will gain by accepting and asking if they're interested. If they are, use user defaults to record that and check that before calling registerForRemoteNotificationTypes: in the app delegate (for each startup). If the user is happy then set that flag in user defaults and call registerForRemoteNotificationTypes: for the first time.

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