user965241
user965241

Reputation: 33

How do you start a background task in iOS?

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

Answers (1)

hotpaw2
hotpaw2

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

Related Questions