Since I switched to using PushKit
framework for application, there are no app badge changes on push received.
Changes to APNS implementation I've done to use PushKit
:
On server side, I replaced APNS certificates with VOIP push certificates.
On client side, I replaced:
registerForRemoteNotifications
withPKPushRegistry *pushRegistry = [[PKPushRegistry alloc] initWithQueue:dispatch_get_main_queue()]; pushRegistry.delegate = (AppDelegate*)[[UIApplication sharedApplication] delegate]; pushRegistry.desiredPushTypes = [NSSet setWithObject:PKPushTypeVoIP];`
didRegisterForRemoteNotificationsWithDeviceToken
anddidFailToRegisterForRemoteNotificationsWithError
withdidUpdatePushCredentials
didReceiveRemoteNotification
anddidReceiveRemoteNotification FetchComplitionHandler
withdidReceiveIncomingPushWithPayload
As a result, didReceiveIncomingPushWithPayload
gets called, and I see valid badge number in payload dictionary, but, unfortunately app badge doesn't change.