iphone - NSNotificationcenter for app in suspended state -
i used nsnotificationcenter implement event listener on change in connectivity. when user connects or disconnects wifi network. possible notification sent app while app in suspended mode?
it must possible this, thinking skype example how receive incoming skype call?
this how add observer
[[nsnotificationcenter defaultcenter] addobserver:self selector:@selector(reachabilitychanged:) name:kreachabilitychangednotification object:nil];
no not possible regular app. skype registered background app of type voip have more abilities execute in background regular apps. there 4 types of background app: audio, voip, location, newstand.
if app not 1 of these types if suspended way can execute again via user either tapping app's icon or responding local or remote notification.
Comments
Post a Comment