[Bug]: Audio does not continue to next chapter when screen is locked on an iOS device, using Safari #372

Closed
opened 2026-04-24 23:06:36 +02:00 by adam · 5 comments
Owner

Originally created by @george-asda on GitHub (May 20, 2022).

Describe the issue

I understand this may be an iOS limitation, and I may need to wait for the full release of the iOS app however currently on my daughter's device she cannot access testflight due to her age (there's a limitation that you must be 13+).

Many thanks for creating this app, by the way - it's looking great so far.

Steps to reproduce the issue

  1. Start playing an audiobook which is split into multiple audio files (mp3 in my case)
  2. lock the screen
  3. when the end of the current chapter/mp3 is reached, audio stops playing and the next chapter/mp3 does not play

Audiobookshelf version

v2.0.15

How are you running audiobookshelf?

Docker

Originally created by @george-asda on GitHub (May 20, 2022). ### Describe the issue I understand this may be an iOS limitation, and I may need to wait for the full release of the iOS app however currently on my daughter's device she cannot access testflight due to her age (there's a limitation that you must be 13+). Many thanks for creating this app, by the way - it's looking great so far. ### Steps to reproduce the issue 1. Start playing an audiobook which is split into multiple audio files (mp3 in my case) 2. lock the screen 3. when the end of the current chapter/mp3 is reached, audio stops playing and the next chapter/mp3 does not play ### Audiobookshelf version v2.0.15 ### How are you running audiobookshelf? Docker
adam added the bug label 2026-04-24 23:06:36 +02:00
adam closed this issue 2026-04-24 23:06:36 +02:00
Author
Owner

@advplyr commented on GitHub (May 20, 2022):

I just tested this on an android device (Pixel 6) using Chrome and an iphone 10 using Safari and both worked.

What device is this happening on?

@advplyr commented on GitHub (May 20, 2022): I just tested this on an android device (Pixel 6) using Chrome and an iphone 10 using Safari and both worked. What device is this happening on?
Author
Owner

@george-asda commented on GitHub (May 21, 2022):

Ah, thanks for looking into it. It’s an XS max on iOS 15.4.1. I’ve just spent a bit more time trying different things, and it’s temperamental at best, sometimes repeating the same chapter but normally just stopping. I did try a different book and that in my limited testing is working fine, so maybe there’s an issue with my files (2 audiobooks seem to have the issue).

Is there a way to enable debug logs in case they show anything?

Edit:sorry to be clear I’ve just been testing on my own xs max however my daughter’s device is a 5th gen iPad Air. I’m more thinking it’s the files now.

@george-asda commented on GitHub (May 21, 2022): Ah, thanks for looking into it. It’s an XS max on iOS 15.4.1. I’ve just spent a bit more time trying different things, and it’s temperamental at best, sometimes repeating the same chapter but normally just stopping. I did try a different book and that in my limited testing is working fine, so maybe there’s an issue with my files (2 audiobooks seem to have the issue). Is there a way to enable debug logs in case they show anything? Edit:sorry to be clear I’ve just been testing on my own xs max however my daughter’s device is a 5th gen iPad Air. I’m more thinking it’s the files now.
Author
Owner

@advplyr commented on GitHub (May 21, 2022):

You may want to check the audio tracks and make sure they are all in the correct order

@advplyr commented on GitHub (May 21, 2022): You may want to check the audio tracks and make sure they are all in the correct order
Author
Owner

@advplyr commented on GitHub (Jun 19, 2022):

Unable to reproduce

@advplyr commented on GitHub (Jun 19, 2022): Unable to reproduce
Author
Owner

@jango-fx commented on GitHub (Feb 14, 2026):

I have the same problem.

iOS 26.2.1
The native app works as expected. (awesome app btw. love it)
I have another instance as PWA saved to the home screen, to be able to have multiple users logged in at the same time. there I'm experiencing the issue regularly.

But I can't reproduce it reliably either (I had the feeling it happened every time, but now that I'm testing it more thoroughly, it works as expected at least 50% of the time, of course...).
It seems to be the same with Firefox or Safari.

When a chapter ends and the screen is locked, the audio stops (not always, though. sometimes there's just a short pause, then it continues). As soon as the browser/window is opened again, it continues. Sometimes a "Socket disconnected" message pops up, followed by "Socket connected".

I guess it's a caching issue? I doesn't seem to occur with single file books. And (maybe?) less so with smaller files per chapter? Or with the same chapter twice... I can't really tell yet.

@jango-fx commented on GitHub (Feb 14, 2026): I have the same problem. iOS 26.2.1 The native app works as expected. (awesome app btw. love it) I have another instance as PWA saved to the home screen, to be able to have multiple users logged in at the same time. there I'm experiencing the issue regularly. But I can't reproduce it reliably either (I had the feeling it happened every time, but now that I'm testing it more thoroughly, it works as expected at least 50% of the time, of course...). It seems to be the same with Firefox or Safari. When a chapter ends and the screen is locked, the audio stops (not always, though. sometimes there's just a short pause, then it continues). As soon as the browser/window is opened again, it continues. Sometimes a "Socket disconnected" message pops up, followed by "Socket connected". I guess it's a caching issue? I doesn't seem to occur with single file books. And (maybe?) less so with smaller files per chapter? Or with the same chapter twice... I can't really tell yet.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/audiobookshelf#372