Should Remote notificatgion on iOS trigger push notifications post UIApplicationWillResignActiveNotification? -
as if understand documentation if push notification pop appears uiapplicationwillresignactivenotification should posted. won't.
i have added:
[[nsnotificationcenter defaultcenter] addobserver:self selector:@selector(pausegame) name:uiapplicationwillresignactivenotification object:nil]; to
applicationdidfinishlaunching
uiapplicationwillresignactivenotification posted when app no longer active , loses focus.
if want listen remote notifications should implement in appdelegate following method:
- (void)application:(uiapplication *)application didreceiveremotenotification:(nsdictionary *)userinfo; and manage remote notifications when app not running should manage launchoptions
- (bool)application:(uiapplication *)application didfinishlaunchingwithoptions:(nsdictionary *)launchoptions
Comments
Post a Comment