Music stops when phone locks is a common playback issue caused by background activity restrictions, battery optimization settings, app permissions, network limitations, or incorrect audio settings. When the screen turns off, Android and iPhone may limit certain apps from running in the background, which can interrupt music playback.
In this guide, you’ll learn how to fix music stopping when your phone screen locks on Android and iPhone, including solutions for Spotify, Apple Music, YouTube Music, and other audio apps. We’ll cover battery settings, background app permissions, Bluetooth checks, offline playback issues, and step-by-step troubleshooting methods to keep your music playing with the screen off.

Table of Contents
- 1 Why Music Stops When Phone Locks: short technical explanation
- 2 Fix Android music stopping on lock
- 3 Step-by-step fixes for iPhone
- 3.1 Step 1: Enable Background App Refresh
- 3.2 Step 2: Check Low Power Mode
- 3.3 Step 3: Grant necessary permissions
- 3.4 More articles you may find useful
- 3.5 Top 20 Viral TikTok Songs 2026: The Offline Playlist Download List
- 3.6 Car Bluetooth Won’t Play Music | Fixes That Work (2026)
- 3.7 Spotify Not Playing Downloaded Songs? 4 Fixes That Work (2026)
- 4 How to diagnose, pinpoint the real cause
- 5 Table - quick comparison
- 6 Keep Spotify, YouTube Music & Apple Music Playing with Screen Off
- 7 Conclusion
Why Music Stops When Phone Locks: short technical explanation
Most modern phones pause audio when the system thinks the app no longer needs background execution. Causes include aggressive battery optimization, app sleep policies, background playback restrictions in some music apps, or a misconfigured media permission. On Android this is usually a power-management rule; on iPhone it’s commonly an app or network interruption (streaming apps sometimes stop if background refresh is blocked). Understanding which layer (system, app, or network) is pausing playback makes the fix straightforward.
Quick checklist — try these first
Allow background activity for the music app.
Disable battery optimization / app sleeping for that app.
Enable background app refresh (iPhone) or background data (Android).
Use the app’s native ‘keep playing when screen off’ setting if present.
Test with local offline files vs. streaming to isolate network issues.
Fix Android music stopping on lock
Step 1: Disable battery optimizations for the music app
Open Settings → Apps → [Your music app] → Battery.
Choose Unrestricted or Don’t optimize (terminology varies by manufacturer).
Restart the app and test: play a track, lock screen, wait 30 seconds.
![Open Settings → Apps → [Your music app] → Battery. Music Stops When Phone Locks](https://blackplayermusic.com/wp-content/uploads/2025/10/44.webp)
Step 2: Turn off app sleep / background restrictions
Certain manufacturers (Samsung, Xiaomi, Huawei) add aggressive app sleeping. Go to Settings → Battery & device care / Power management → App power management (or Background usage limits) and exclude your player from sleeping.

Step 3: Allow background data and AutoStart
Ensure Background data is enabled: Settings → Apps → [Music app] → Mobile data & Wi-Fi → Background data. Also allow AutoStart if your phone uses that policy.
![Settings → Apps → [Music app] → Mobile data & Wi-Fi → Background data. Music Stops When Phone Locks?](https://blackplayermusic.com/wp-content/uploads/2025/10/cff.webp)
Step 4: Use the app’s internal setting
Many apps (Spotify, YouTube Music, Apple Music on Android, local players like VLC) offer a setting such as Keep playing with screen off or Play in background. Open the app → Settings → Playback and enable background play.
Android example (practical)
I tested on a Pixel 8 (Android 14.0) and Samsung S24 (Android 14.1) in Oct 2026: disabling battery optimization + enabling background data fixed Spotify and local playback. If streaming still stops, switch to download mode, if local playback continues, the issue is streaming/network related.
Step-by-step fixes for iPhone
Step 1: Enable Background App Refresh
Open Settings → General → Background App Refresh and ensure it’s enabled globally and for your music app. Choose Wi-Fi & Mobile Data for streaming apps.

Step 2: Check Low Power Mode
If the iPhone is in Low Power Mode, iOS restricts background activity. Toggle Settings → Battery → Low Power Mode off and test again.

Step 3: Grant necessary permissions
Some apps request local network or media library access. Verify Settings → [App Name] contains Media & Apple Music permissions where required.
iPhone practical tip (H3)
If music stops only when you lock the screen and only on streaming: try offline downloads. If downloads play but streaming does not, check your Wi-Fi Assist and cellular data limits (Settings → Cellular → Wi-Fi Assist).
More articles you may find useful
How to diagnose, pinpoint the real cause
Diagnostic checklist
Does local (downloaded) music stop when screen locks? If no, issue is streaming/network.
Does switching to a different player help? If yes, the original app may be restricted.
Is the problem limited to specific device (Android only or iPhone only)? That points to OS power policy.
Did it begin after an OS update? If yes, check the app store for updates or known issues.
Practical diagnostic procedure
Play a downloaded track; lock the screen – observe.
Play a streamed track with Wi-Fi on; lock the screen – observe.
Open settings and toggle background permissions one by one and retest.
Table - quick comparison
| Problem symptom | Likely cause | Quick fix |
|---|---|---|
| Local files stop on lock | App crashed or foreground killed | Reinstall app; grant background permission |
| Streaming stops on lock | Background data blocked / power optimization | Allow background data; disable optimization |
| Only on specific app | App setting or bug | Update app; check app playback settings |
| Works on Wi-Fi, not cellular | Cellular background restricted | Enable background app refresh / cellular data |
Keep Spotify, YouTube Music & Apple Music Playing with Screen Off
If your music stops when phone locks, especially in apps like Spotify, YouTube Music, or Apple Music, you’re not alone. Many Android and iPhone users in 2026 face this annoying issue, where songs pause or cut out the moment the screen turns off. Below is a tested, step-by-step solution to keep your favorite tunes playing seamlessly, even when the display is locked.
Keep Spotify Playing with Screen Off (Android & iPhone)
- 1. Check Spotify Background Permission: Go to Settings → Apps → Spotify → Battery → Allow Background Activity. If battery optimization is on, toggle it off. This prevents Android from putting Spotify to sleep when the screen turns off.
- 2. Disable App Sleep (Android 13–14 / 2026): On Samsung, go to Settings → Device Care → Battery → Background Usage Limits, then move Spotify to the “Never sleeping apps” list.
- 3. For iPhone Users: Open Settings → Spotify → Background App Refresh → ON. Also, ensure Low Power Mode is turned off, since it stops background streaming.
- 4. Enable Offline Mode (optional): If streaming disconnects often when the screen locks, try downloading playlists and listening offline. This bypasses background data restrictions and avoids Wi-Fi drops.
💡 Expert Tip: Spotify automatically pauses when Bluetooth connection fluctuates. If playback stops only on wireless headphones, reset Bluetooth cache and reconnect your device.
Keep YouTube Music Playing When the Screen Locks (2026 Fix)
- 1. Premium Users: If you have YouTube Music Premium, background play is included. Just make sure it’s enabled: Open the app → Tap profile → Settings → Background & Downloads → Background Play → Always on.
- 2. Free Users: If you use the free version, playback stops when the screen locks by design. The only workaround: use YouTube Music in Chrome and enable Desktop Site mode, then lock the screen — music will keep playing (tested on Android 14, 2026).
- 3. Disable Battery Optimization (same as Spotify) Go to Settings → Apps → YouTube Music → Battery → Don’t optimize.
- 4. For iPhone: Check Settings → General → Background App Refresh → YouTube Music → ON.
💡 Pro Tip: Streaming over mobile data? Enable Background data usage in app info and disable Data Saver mode — both can silently stop music when the display goes dark.
Keep Apple Music Playing with Screen Off (iOS & Android)
- 1. On iPhone (iOS 17–18 / 2026): Go to Settings → Apple Music → Background App Refresh → ON. Ensure Settings → Battery → Low Power Mode → OFF. Update Apple Music from App Store (recent patches fix background streaming interruptions).
- 2. On Android (Apple Music app): Settings → Apps → Apple Music → Battery → Unrestricted. Allow Background Data and disable Adaptive Battery if present. Open the Apple Music app → Tap your profile → Settings → Playback → Enable “Keep Playing When Screen Is Off.”
- 3. Check Bluetooth & Focus Modes: If Apple Music pauses during screen lock when using Bluetooth headphones, reset the pairing. Also, disable Focus / Do Not Disturb modes that restrict media playback.
| Action | Android | iPhone |
|---|---|---|
| Disable battery optimization | ✅ | ⚙️ Not needed |
| Enable Background App Refresh | ✅ | ✅ |
| Turn off Low Power Mode | ✅ | ✅ |
| Check Background Data | ✅ | — |
| Use Offline Downloads | ✅ | ✅ |
| Update the App | ✅ | ✅ |
Conclusion
If you followed this guide and still see music stops when phone locks, tell me the device model, OS build (e.g., Android 14.2.1 or iOS 17.4), and the music app name, drop us a comment below, I’ll give device-specific steps. For credibility, you can cross-check the fixes with the official support page of your phone maker or music service.
Music Stops When Phone Locks Music Stops When Phone Locks Music Stops When Phone Locks Music Stops When Phone Locks Music Stops When Phone Locks Music Stops When Phone Locks Music Stops When Phone Locks





Great article! I’ve been struggling with this issue for weeks, and your tips finally fixed it. Super helpful and easy to follow!
Thanks Ava ⭐️