See the Background Run section of iPhoneAppProgrammingGuide . In short, your application must be one of the following types:
- Applications that play audio content for the user in the background, for example, an application for a music player.
- Applications that constantly inform users of their location, such as a navigation application
- Voice over Internet Protocol (VoIP) Applications
- Press applications to download and process new content.
- Applications regularly receiving updates from external accessories
And you should add the following to Info.plist: Add the UIBackgroundModes key to your Info.plist and set its value to an array containing one or more of the following lines:
- audio - the application plays audio content to the user in the background. (This content includes streaming audio or video content using AirPlay.)
- location - the application informs users about its location, even if it is running in the background.
- voip - the application provides the ability to make phone calls using an Internet connection.
- newsstand-content - the application is an aNewsstand application that downloads and processes a file or newspaper in the background.
- external-accessories - the application works with a hardware accessory, which should deliver updates to the regular schedule through the structure of the external accessory.
- bluetooth-central - the application works with a Bluetooth accessory, which should deliver updates on a regular schedule through the CoreBluetooth infrastructure.
Note that part of the validation process will verify that your application does what it says is doing in relation to background processing.
Brian Cooley Mar 16 2018-12-12T00: 00Z
source share