开发者

How do you start a background task in iOS?

开发者 https://www.devze.com 2023-04-07 09:48 出处:网络
What I am trying 开发者_JS百科to do is to let application run in the background when a user takes a specific action (pushes a button).

What I am trying 开发者_JS百科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?


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消