bortuzar/PHP-Mysql---Apple-Push-Notification-Server — Issue #3: Badges
Author: RayDeeA
Created: 2011-11-08 14:39:43+00:00
State: open

First of all: Great Job and thanks for sharing.

I dont now why, I tried everything, but the badge is not beeing displayed.
This is how I register the app for push notifications:

[UIApplication sharedApplication] registerForRemoteNotificationTypes: (UIRemoteNotificationTypeAlert | UIRemoteNotificationTypeBadge | UIRemoteNotificationTypeSound)];

I've made some output to the console:
- (void)application:(UIApplication *)app didReceiveRemoteNotification:(NSDictionary *)userInfo {
NSLog(@"%@",userInfo);
}

and got following dictionary back:
{
aps = {
alert = erefe;
badge = 1;
sound = default;
};
}

Badges are enabled in the notification settings on the test devices for that app. Did something changed in ios5???