iOS background modes
Xcode background modes (audio, location, VoIP, Bluetooth, fetch, push) decide what can run while closed.
In one line
Can run in the background on iPhone, but only for the kind of job Apple approved
Xcode background modes (audio, location, VoIP, Bluetooth, fetch, push) decide what can run while closed.
Each mode is a narrow exemption tied to a visible use. Using one for something else is an App Review rejection, so the list shows what a company claims to need.
What it can and can't do
What the user does: You start playback, a navigation trip, a call, or connect to a Bluetooth device
It can
- Keep playing audio after you leave the app, until playback ends
- Keep tracking location until the app stops it, if you allowed Always
- Wake up for an incoming call or a Bluetooth event
- Refresh content now and then when the system decides it is a good time
It cannot
- Run any task it likes while closed; each mode covers one kind of job
- Choose when fetch and processing happen, since iOS sets the schedule
- Run in the background with no capability turned on in the app's setup
How it differs between platforms: Android has no per mode approval. It uses foreground service types and a visible notification instead.
On Android and iPhone
| Android | iPhone | |
|---|---|---|
| Status | Partial | Supported |
| First version | Android 14 (API 34) | iOS 4.0 |
| Permission or entitlement | FOREGROUND_SERVICE_<TYPE> | UIBackgroundModes: audio, location, voip, bluetooth-central, bluetooth-peripheral, fetch, remote-notification, processing, external-accessory, nearby-interaction |
| Protection level | normal | entitlement |
| How access is granted | install | entitlement |
| What the user sees | See mob.bg.fgs-types | Capability in Xcode |
| How long it lasts | n/a | Declared at build time |
| How to take it back | Not listed | Not user visible except Background App Refresh |
| Store policy | Play: FGS type declaration | App Review 2.5.4: modes only for stated purpose |
| API | Foreground service types as the closest analog | Info.plist UIBackgroundModes |
| Notes | Android uses FGS types instead of per-mode entitlements | Modes have different run windows: audio until playback ends; location until stopped; fetch and processing as scheduled |
Data you get
What comes back: Modes
Shape: list
How often: Build time
| Field | Type | Unit | Range | Precision |
|---|---|---|---|---|
modes | list | None | 10 types | Not listed |
Technical limits
- Review rejects misuse
The story
What it is
iPhone only lets closed apps keep running for a few approved reasons, like music or navigation.
For you
You see it as the colored bar or dot showing an app is using location or audio. It is why music keeps playing and a run keeps being recorded with the screen off.
For makers
Makers must ask Apple for each mode and show a real need. The list tells reviewers what the app claims to do, and misuse can get an update rejected.
Where you see it
| Type | Example | Apps |
|---|---|---|
| music | A music app keeps playing with the phone locked using the audio mode. | Spotify, Apple Music |
| maps | A navigation app keeps giving turn by turn voice directions in your pocket. | Waze, Apple Maps |
| fitness | A workout app records a bike ride route and heart rate while the screen is off. | Strava, Nike Run Club |
| messaging | A calling app wakes the phone for an incoming call using the VoIP mode. | WhatsApp, FaceTime |
| smart-home | A home app stays in touch with a Bluetooth lock so it can unlock as you arrive. | August, Yale Access |
| games | A multiplayer game uses the audio mode for in game voice chat that keeps going when you switch apps. | Discord, Call of Duty Mobile |
Risks
- Some apps stretch a mode to stay alive
- Hard to tell which apps run in the background
Android and iPhone in short
- Android: Android uses foreground service types instead of one entitlement per mode.
- iPhone: Each mode has its own run window, such as until music ends or until location is stopped.
What the platform says
- Apple: Background execution modes. Apple lets developers enable specific background capabilities such as audio, location, VoIP and Bluetooth in Xcode.
Good uses and abuse
Legitimate uses
- Navigation
- Calls
Known abuse
- Abusing audio or location for keep-alive
Scores
| Score | Value | Meaning |
|---|---|---|
| Sensitivity | 1 of 5 | How revealing the data is |
| Utility | 3 of 5 | How useful it is to honest apps |
| Friction | 1 of 5 | How much the user has to do |
| Fingerprint bits | Not rated | Rough identifying entropy, when known |
History
- 2010-06, iPhone iOS 4: Multitasking and background modes introduced
- 2019-09, iPhone iOS 13: VoIP pushes must show a CallKit call
Related capabilities
Related
- Foreground service types (Android 14). Can run long Android background tasks, but only for a declared purpose with a notification
- Background audio and media playback. Can keep playing sound with the screen off, with new limits in Android 17
Sources
How well checked: Based on official documentation.