I'm seeing behaviour on my iPhone where debug builds immediately exit after a call to
[[UIApplication sharedApplication] registerForRemoteNotificationTypes:UIRemoteNotificationTypeBadge | UIRemoteNotificationTypeAlert];
The debugger reports it exited with the message
Terminating in response to SpringBoard's termination.
This behaviour doesn't happen on my ad hoc distribution builds. 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 - there are no switches to enable/disable badges, alerts, and sounds like there are for every other app.