tags:

views:

13

answers:

1

Trying to work around a few corner cases for when push notifications are denied in the app and I have two questions:

1) Is there a way to reset whether the user has seen the notification request pop up?

2) Is there any way to determine if the user has said no to the notification request?

+1  A: 

1) No, unless there's some private API that does that, but that's not allowed by Apple

2) The first time your app is started, after calling registerForRemoteNotificationTypes, you can check if didRegisterForRemoteNotificationsWithDeviceToken is called. If it's not, the user said "No thanks".

Philippe Leybaert
1) What I thought... grumble2) the only issue with that is the time span between registerForRemoteNotificationTypes and didRegisterForRemoteNotificationsWithDeviceToken is undefined. I could check it on app exit, but I'm not sure if the user even has to make a choice prior to exiting. Also the user could change the notification permissions in Settings and I can't detect that change.
Brian King
Welcome to the wonderful world of Apple
Philippe Leybaert