We used Pushwhoosh for remote notification. Its working fine, but the icon icon does not increase.
Here is the code:
- (void) onPushReceived:(PushNotificationManager *)pushManager withNotification:(NSDictionary *)pushNotification onStart:(BOOL)onStart { [[UIApplication sharedApplication] setApplicationIconBadgeNumber:0]; [[UIApplication sharedApplication] setApplicationIconBadgeNumber:1]; } - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { [[UIApplication sharedApplication] registerForRemoteNotificationTypes: (UIRemoteNotificationTypeSound | UIRemoteNotificationTypeAlert | UIRemoteNotificationTypeBadge)]; PushNotificationManager * pushManager = [PushNotificationManager pushManager]; pushManager.delegate = self; if ([launchOptions objectForKey:UIApplicationLaunchOptionsLocationKey]) { PushNotificationManager * pushManager = [PushNotificationManager pushManager]; [pushManager startLocationTracking]; } [[UIApplication sharedApplication] setApplicationIconBadgeNumber:1]; [[UIApplication sharedApplication] setApplicationIconBadgeNumber:0]; }
How to increase icon icon icon icon icon icon when sending push?
Got a solution. We have the ability to set the notification icon number in push whoosh server.
. , push- 0. , / , iOS, . , . , , , 0.