my iphone app's delegate has push notifications set up:
- (void)application:(uiapplication *)application didreceiveremotenotification:(nsdictionary *)userinfo { (id key in userinfo) { nslog(@"key: %@, value: %@", key, [userinfo objectforkey:key]); } }
now, launch it, suspend pressing home button. send notification device, , notification received. dialog appears 2 buttons - "close", , "view". now, when click "view", app gets resumed, , didreceiveremotenotification sent delegate.
but if click "close", app remains in background. if manually launch app, neither "didreceiveremotenotification", nor "didfinishlaunchingwithoptions" sent. - payload? how payload in case?
if user closes notification , launches application using app icon won't payload anymore.. lost forever then.
this described @ http://developer.apple.com/library/ios/#documentation/networkinginternet/conceptual/remotenotificationspg/iphoneosclientimp/iphoneosclientimp.html in "handling local , remote notifications" section.
also notice server saves 1 notification app user. if device offline , notification not received send 1 first 1 never reach user because replaces first one.
Comments
Post a Comment