In Ad Hoc builds I see the application:didRegisterForRemoteNotificationsWithDeviceToken: event called but not when I use a DEBUG build using a developer provisioning profile. The Ad Hoc and Developer Provisioning Profile are using the same App ID.
App ID Screenshot:

When running using the developer provisioning profile I did see the alert asking about whether or not to enable push notifications. I chose to use push notifications, but then the event application:didRegisterForRemoteNotificationsWithDeviceToken: never occurred. Note that the event for application:didFailToRegisterForRemoteNotificationsWithError: also does not occur.
Note that in application:didFinishLaunchingWithOptions: I have:
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
[[UIApplication sharedApplication] registerForRemoteNotificationTypes:UIRemoteNotificationTypeAlert];
// Other code...
}
I'm pretty puzzled by this one.
Other Notes:
- My iPad 2 and iPod 4 I am using are NOT jail broken
- I was seeing the dreaded no valid 'aps-environment' entitlement string found for application error, but this resolved after regenerating my development provisioning profile.
- A co-worker of mine has seen this same issue (works on Ad Hoc but not developer) on projects with previous companies.