i try to update badge icon, every time when when the app (in background)receive a push notification.
i used that in "didReceiveRemoteNotification" and "didFinishLaunchingWithOptions"
[UIApplication sharedApplication].applicationIconBadgeNumber++;
If the app is in foreground and receive few push notifications, when the app come back in backgorund the icon's badge is updated with the number of push notifications received.
But if the app is in background the icon's badge is allways 1 like in payload even the app receive many notifications.
Do you have some ideas? Thanks in advance