Pushwhoosh Remote Alert

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?

0
source share
2 answers

Got a solution. We have the ability to set the notification icon number in push whoosh server.

enter image description here

+1
source

. , push- 0.      , / , iOS, . , . , , , 0.

+8

All Articles