RegisterForRemoteNotificationTypes causes the application to exit immediately

I see behavior on my iPhone where debug assemblies exit immediately after calling

[[UIApplication sharedApplication] registerForRemoteNotificationTypes:UIRemoteNotificationTypeBadge | UIRemoteNotificationTypeAlert];

      

The debugger reports that it exited with a message

Termination in response to SpringBoard termination.

This behavior does not occur in my ad hoc distribution assemblies. Can anyone explain this behavior?

Also weird: when I go to settings-> notifications for my app it says "off" and when I click on it the page is blank - no toggles to turn on / off icons, warnings and sounds for every other app, for example.

+2


a source to share





All Articles