How to Fix iOS Browser Limitation Stopping Background Playback in a Laravel Music Player
I have a music player built with Laravel. On Android, when the screen is locked and a song finishes, the app automatically plays the next track — it works perfectly.
However, on iPhone, when the screen is locked, playback stops at the end of a song and doesn’t continue to the next one. Once I unlock the screen, playback resumes normally.
It seems that iOS is more restrictive. Is there any way to make the iPhone version behave like Android? Automatically playing the next song even when the screen is locked? It’s really annoying.
I’ve tested it on both Brave and Safari for iOS with the same result.
I’m not interested in building a native app since this is just a personal project, and I don’t want to pay Apple’s €100/year developer license just to make it work natively.
5 Replies
bump
Nope, when the screen locks iOS suspends WebKit aggressively to save processing power.
Spend the 100 if you want that, or leave the screen unlocked but dimmed.
arhhgg pain 😭
okay so there is nothing i can do as web developer then i understand?
To the best of my knowledge no
and antoher thing related, u know how to autoplay a video/audio without the user interacting with the page?
well let me make a new thread
https://discord.com/channels/883083792112300104/1429875318335868928