iphone - Add multiple Push notifications to Global Array ios -


i have problem handling more 1 push notifications. when unlock iphone , there (for example) 10 push notifications of app, app register some:

- (bool)application:(uiapplication *)application didfinishlaunchingwithoptions:         (nsdictionary *)launchoptions { if (launchoptions != nil) {     nsdictionary *dictionary = [launchoptions objectforkey:uiapplicationlaunchoptionsremotenotificationkey];      if (dictionary != nil)     {         nslog(@"launched push notification: %@", dictionary);         [self addmessagefromremotenotification:dictionary updateui:yes];     }          }    } 

if app open there no problem , received notifications added array. thank you


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -