Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iOS Resume Playback Problem #844

Closed
slyfoxgh opened this issue Aug 15, 2023 · 28 comments
Closed

iOS Resume Playback Problem #844

slyfoxgh opened this issue Aug 15, 2023 · 28 comments
Labels
bug Something isn't working

Comments

@slyfoxgh
Copy link

  1. Turn on ABS.
  2. Lock the screen.
  3. Wait about 6 minutes without playing.
  4. Lock screen player disappears.

The same issue occurs while using the app in the car. After about five minutes of pausing, there is no way to resume playback unless you open the app and navigate to the file you want to play.

@slyfoxgh slyfoxgh added the bug Something isn't working label Aug 15, 2023
@slyfoxgh slyfoxgh changed the title iOS Playback Problem iOS Resume Playback Problem Aug 15, 2023
@Drudoo
Copy link

Drudoo commented Sep 4, 2023

You don't even have to wait 6 min, usually 1-2 min is enough for the player to disappear.

@xstefanx
Copy link

I also have this issue, usually about one minute or so and the app seems to close entirely. I’d seen mention of this bug in other issues that are marked as closed now. #770 has some links to previous issues as well.

I use the app with carplay a lot and while the app doesn’t have full functionality of carplay, being able to pause and resume from the now playing app is at least safer than having to pull out the phone and open the app and specific book again and then hit play from there.

@xstefanx
Copy link

I actually noticed today that this happens even if the app is open behind the locked screen. I had left the app running and the screen timed out. I paused from the car stereo and noticed it had timed out a few seconds later when I went to resume it. Upon unlocking my phone I could see the app for a brief second and then it closed. Seems a lot like the app is crashing while not active on screen and paused.

@nichwall
Copy link
Contributor

What iOS version are y'all running? Are you running the iOS 17 beta?

@advplyr
Copy link
Owner

advplyr commented Sep 17, 2023

I haven't been able to reproduce this with iOS 16.6.1 yet, still testing different scenarios

@xstefanx
Copy link

I’m on 16.0 I can try updating to see if that changes anything.

@xstefanx
Copy link

Can confirm it still happens to me on 16.6.1

@DavidCo23
Copy link

DavidCo23 commented Sep 18, 2023

This was happening to me a lot as well, even after the most recent update to the app. Looking at the server logs it was getting spammed with "[MeController] syncLocalMediaProgress invalid local media progress object no library item [object Object]" repeatedly. I tried getting rid of a lot of my locally downloaded audiobooks and it didn't seem to help. I ended up uninstalling/reinstalling the app and that seems to have fixed the issue for now. Able to resume audio after several minutes of being paused on a locked screen again.

App version: 0.9.66-beta
Server version: 2.4.3
iOS version: 16.6.1

@xstefanx
Copy link

@DavidCo23 I'll give that a try. I've updated to iOS 17 and haven't tested yet on this either. Will report back.

@xstefanx
Copy link

Uninstall and reinstall did indeed fix the app crashing while paused.

Very strange and I’m sure it’ll make it near impossible to troubleshoot if it’s even an issue with the app itself. Could be an iOS bug as well.

Thanks for the tip!

@advplyr
Copy link
Owner

advplyr commented Sep 22, 2023

Thanks for testing this.
It seems to be the case that on iOS if you had downloaded media on server v2.2.23 or earlier and listened offline then you may need to clear data in the app.

@xstefanx
Copy link

Thanks for testing this. It seems to be the case that on iOS if you had downloaded media on server v2.2.23 or earlier and listened offline then you may need to clear data in the app.

I've actually never downloaded content at all. I've only streamed.

@advplyr
Copy link
Owner

advplyr commented Sep 22, 2023

@xstefanx Ah yeah, I forgot that the iOS app will store progress syncs locally even for media not downloaded if the progress syncs fails. Then it will try to sync it the next time any media gets played.

This also explains why it's a small percentage of iOS users coming across this.

@antongiacomo
Copy link

antongiacomo commented Sep 22, 2023

I'm experiencing the same issue on iOS 16.6.1, and now with iOS 17.0.1. I'm running the latest server version (2.4.3). I've tried uninstalling and reinstalling the application, but after a few seconds, usually less than a minute, the app abruptly closes (or possibly crashes), forcing me to restart playback. The playback resumes from where I left off when I paused it. This happens every time I pause the playback.

@tinect
Copy link

tinect commented Sep 22, 2023

same here with ios 17.0.1 and latest server version

@cybergurke
Copy link

I can also confirm the issue

@watsonbox
Copy link

I too was having this issue - player disappearing a app screen refreshing after a few minutes of pause - and can confirm that reinstalling the app fixed it.

@lerndmina
Copy link

lerndmina commented Sep 30, 2023

I am having this issue on iOS 17.0.2 (iPhone 15 Pro)

After pausing playback and waiting about 10-60 seconds the app disappears from the playback controls in the control centre and the dynamic island/lock screen. Upon re opening the app it sends me to the main page and once I resume playback it resumes at the correct point.

Edit: I wonder if it's iOS killing the app to save resources.

@advplyr
Copy link
Owner

advplyr commented Sep 30, 2023

@lerndmina Have you tried reinstalling the app?

@lerndmina
Copy link

@lerndmina Have you tried reinstalling the app?

Yeah I just reinstalled today. And it seems to still be happening.

@mym0T
Copy link

mym0T commented Oct 6, 2023

I'm having this issue as well. Server version: 2.4.4
iPhone 12 Pro on iOS 17.0.3
App Version: 0.9.66-beta
I tried re-installing the app, but it didn't resolve the issue for me either.

The only thing I see in the logs is connect and disconnect messages.

{"timestamp":"2023-10-06 00:00:24","source":"Logger.js:114","message":"[SocketAuthority] Socket H-oLFVtn_apGr2vyAAAr disconnected from client "username" after 109653ms (Reason: transport close)","levelName":"INFO","level":2}

@themaz
Copy link

themaz commented Oct 9, 2023

On iOS beta 17.1, on an iPhone 14 Pro same issue. Uninstalled, restarted phone, and reinstalled the app but it did not help.

With Prologue (audiobook app that uses plex as a server, I don’t experience this behavior)

@oswalt0
Copy link

oswalt0 commented Oct 15, 2023

Do you log into the server via local only? I was having the same problem, it seems to be an "offline" issue, until I installed Tailscale and now it only does it on my Android that is not going through Tailscale to the library. If you watch the sync at the top when you first start your book as soon as its done refreshing it seems to press pause and then you have to do press play again. Also if you are not connected to your library via an internet connection it also seems to force close the app when you press pause via a Bluetooth connection. I have been able to consistently reproduce the problem if I go back to my local IP and use offline.

@lerndmina
Copy link

lerndmina commented Oct 15, 2023

Do you log into the server via local only?

Idk about others but I have a VPN to my server that's always on my phone so I can say that this issue happens regardless of whether I am connected to the server or not.

@tinect
Copy link

tinect commented Oct 15, 2023

my server is online.

@lerndmina
Copy link

lerndmina commented Nov 11, 2023

Hey. Just a quick note. I don't know what has happened but this is happening less frequently on my iOS device. So it's even harder to pin down a specific workflow or cause to this issue

But it is getting better at least for me.

I don't know if it has anything to do with the fact that I moved from hosting using the apt package to Docker.

🤷‍♂️ probably not.

@ZeroNoir51
Copy link

It fixed itself for me as well

@advplyr
Copy link
Owner

advplyr commented Nov 18, 2023

Users in discord confirmed that this issue is fixed in the iOS release today v0.9.67-beta

@advplyr advplyr closed this as completed Nov 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

16 participants