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
Post a Comment