Background audio and media playback
Apps can keep playing sound with the screen off; Android 17 adds new limits for apps that target it.
In one line
Can keep playing sound with the screen off, with new limits in Android 17
Apps can keep playing sound with the screen off; Android 17 adds new limits for apps that target it.
Used for music, podcasts and navigation prompts. Android 17 hardens background audio playback, focus and volume so quiet apps cannot hijack the speaker.
What it can and can't do
What the user does: You start music, a podcast or a call, then lock your phone or switch apps
It can
- Keep audio playing with the screen off
- Show lock screen controls and now playing info
- Keep playing through a foreground service on Android
- Play alarms with the exact alarm permission on Android 17
It cannot
- Play silent audio just to stay alive; App Review rejects it on iPhone
- Start background audio on Android 17 without a foreground service or alarm permission
- Play after you stop the media session
- Ignore other apps that take audio focus
How it differs between platforms: iPhone needs the audio background mode. Android needs a media foreground service and gets stricter limits for apps that target Android 17.
On Android and iPhone
| Android | iPhone | |
|---|---|---|
| Status | Supported | Supported |
| First version | Android 5.0 (API 21) | iOS 4.0 |
| Permission or entitlement | FOREGROUND_SERVICE_MEDIA_PLAYBACK; exact alarm permission with USAGE_ALARM | audio in UIBackgroundModes; AVAudioSession playback category |
| Protection level | normal | entitlement |
| How access is granted | install | entitlement |
| What the user sees | Media notification; Android 17 blocks background audio unless a while-in-use FGS is held | Now Playing and control center |
| How long it lasts | While the media session is active | While session active; suspended when audio stops |
| How to take it back | Task manager | Remove capability |
| Store policy | Play: no covert audio | App Review 2.5.4 |
| API | MediaSessionService, AudioFocusRequest | AVAudioSession, MPNowPlayingInfoCenter |
| Notes | Android 17 (target 37): background audio needs a foreground service with while-in-use capability, or the exact alarm permission with USAGE_ALARM | Audio mode is not a pass for silent loops; App Review rejects silent audio trick |
Data you get
What comes back: Audio focus
Shape: event
How often: In session
| Field | Type | Unit | Range | Precision |
|---|---|---|---|---|
focus | enum | None | gain, loss, duck | Not listed |
Technical limits
- Silent audio loops are rejected by App Review
- Android 17 limits background audio start
The story
What it is
An app keeps playing sound with the screen off or while you use another app.
For you
You press play, lock your phone and the music keeps going. You see controls on the lock screen. You never need to keep the app open.
For makers
Makers of music, podcasts and navigation apps need this. Some apps abuse it by playing silent audio to stay alive. Android 17 tightens limits for apps that target it, so quiet apps cannot hold the speaker.
Where you see it
| Type | Example | Apps |
|---|---|---|
| music | A music app plays your playlist in your pocket while you walk. | Spotify, Apple Music |
| media | A podcast app plays on a commute and remembers the spot. | Pocket Casts, Overcast |
| maps | A navigation app speaks turn directions while the screen is off. | Google Maps, Waze |
| fitness | A workout app plays coaching cues while you run. | Peloton, Nike Run Club |
| games | A game keeps its voice chat running while you open another app. | Discord |
| security | A sneaky app plays silence on loop to stop the system from stopping it. | None named |
Risks
- Silent audio to stay alive
- Battery drain
Android and iPhone in short
- Android: Android 17 adds new limits on background audio, focus and volume for apps that target it.
- iPhone: iPhone needs the audio background mode and a visible media session.
What the platform says
- Google: Background playback. Android media apps keep playing audio in the background, with controls on the lock screen.
- Apple: Now playing. Apple lets music and podcasts keep playing with the screen locked and shows controls on the lock screen.
Good uses and abuse
Legitimate uses
- Music
- Podcasts
Known abuse
- Silent audio to stay alive
Scores
| Score | Value | Meaning |
|---|---|---|
| Sensitivity | 2 of 5 | How revealing the data is |
| Utility | 4 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
- 2026-06, Android 17 (API 37): Background audio playback, focus and volume restrictions for apps targeting 37
Related capabilities
Related
- Foreground service types (Android 14). Can run long Android background tasks, but only for a declared purpose with a notification
- iOS background modes. Can run in the background on iPhone, but only for the kind of job Apple approved
Same idea on the web
- Screen Wake Lock. Can keep your screen on while the page is showing, but not in the background
Sources
How well checked: Checked against real behavior.