Background Notification when Application is Launched
Can an appl开发者_开发知识库ication running in the background on an iOS device be notified when a different application (i.e. Phone, Safari, etc.) is launched? Thanks.
Very simply no.
2 reasons:
In the background state apps can do very little, compared to the foreground, they can only do one of several predefined things, such as registering for location (GPS) updates, playing audio, task completion (user quits app during save/upload, the app will continue to save/upload), VOIP and that's about it.
Apps have their own sandbox, app to app communication is very limited.
There is no API to do this, unless you are wanting the app to be available for jailbroken devices.
精彩评论