Reputation: 33
What I am trying to do is to let application run in the background when a user takes a specific action (pushes a button).
On blackberry, there is a method called application.requestbackgtound();
Is there something similar in iOS?
Upvotes: 0
Views: 560
Reputation: 70743
If your app has requested background activity (via a UIBackgroundModes key for audio, voip, or location in the app's info.plist), or has requested extra background time for a limited period (via calling beginBackgroundTaskWithExpirationHandler:), then launching another app (such as Safari) via openURL: will put your app in the background.
Upvotes: 1