increment - Quickblox push notification badge counter iOS REST -


i'm building app corona sdk has quickblox end. have 1 final technical challenge - how can badge counter increment each time push notification received? using rest api send messages.

to manage badge counter in push notification should send push notification proper badge value. ios device doesn't increment automatically each time received new push message

to send push ios device particular badge counter should use code:

nsmutabledictionary *payload = [nsmutabledictionary dictionary]; nsmutabledictionary *aps = [nsmutabledictionary dictionary]; [aps setobject:@"default" forkey:qbmpushmessagesoundkey]; [aps setobject:@"this push notification, baby!" forkey:qbmpushmessagealertkey]; [aps setobject:@"5" forkey:qbmpushmessagebadgekey]; [payload setobject:aps forkey:qbmpushmessageapskey];  qbmpushmessage *message = [[qbmpushmessage alloc] initwithpayload:payload];  // send push [qbmessages tsendpush:message tousers:@"218650" delegate:self]; 

you receive push message badge value = 5

also can send push admin panel , manage badge value https://www.evernote.com/shard/s216/sh/7e53a5e3-c24b-4ae9-b4c4-855dd4f41370/b404dcb788992fb1a8dabe1bf0fbcc0f


Comments

Popular posts from this blog

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

html - How to style widget with post count different than without post count -

url rewriting - How to redirect a http POST with urlrewritefilter -