Abhinav
Abhinav

Reputation: 38162

Using UIBackgroundModes to run code in background mode

Has anyone tried using UIBackgroundModes to register for any networking stuff? I want to keep running my server fetching code and playing some sound based on the server response even when my application is in the background or the device is sleeping.

Any clue on this and what would be the impact of using this?

Upvotes: 1

Views: 4142

Answers (1)

rickster
rickster

Reputation: 126137

If you use UIBackgroundModes to declare your app is for VoIP and register a periodic keepalive handler, you can do pretty much whatever you want in the background. But you won't make it onto the App Store with that unless you're really a VoIP app. See the documentation for what kind of things are allowed in the background and what aren't.

Upvotes: 1

Related Questions