I integrate Quickblox into an ios chat application. The problem in the application does not increase the number of icons in the background when a chat notification appears. Each time the number of icons is displayed 1.
And to send chat I use below code
NSMutableDictionary *payload = [NSMutableDictionary dictionary]; NSMutableDictionary *aps = [NSMutableDictionary dictionary]; [aps setObject:@"default" forKey:QBMPushMessageSoundKey]; [aps setObject:@"1" forKey:QBMPushMessageBadgeKey]; [aps setObject:@"helo second chat" forKey:QBMPushMessageAlertKey]; [payload setObject:aps forKey:QBMPushMessageApsKey]; QBMPushMessage *pushMessage = [[QBMPushMessage alloc] initWithPayload:payload]; [QBMessages TSendPush:pushMessage toUsers:@"112345" delegate:self];
source share