mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2026-07-26 14:38:39 +02:00
[PR #1777] Fix issue: 1161 ([Bug]: Mobile app ignores external progress when playing on web) #1694
Reference in New Issue
Block a user
📋 Pull Request Information
Original PR: https://github.com/advplyr/audiobookshelf-app/pull/1777
Author: @giejay
Created: 1/10/2026
Status: 🔄 Open
Base:
master← Head:master📝 Commits (3)
bcf19aeFix issue: 1161 ([Bug]: Mobile app ignores external progress when playing) by syncing progress with the server on websocket disconnect or screen timeout4f5c2d9Fix issue: 1161 ([Bug]: Mobile app ignores external progress when playing) by syncing progress with the server on websocket disconnect or screen timeout45b52d6Collapse the 2 if statements into 1 for checking whether the socket has been disconnected + out of focus for 30 sec📊 Changes
1 file changed (+34 additions, -6 deletions)
View changed files
📝
layouts/default.vue(+34 -6)📄 Description
Brief summary
This PR tries to fix the issue which users were seeing when playing an audiobook on the web and continuing on the app. The server progress would not be visible in the app and it would use the local progress, overwriting any server progress.
Which issue is fixed?
https://github.com/advplyr/audiobookshelf-app/issues/1161
Pull Request Type
Android + iOS, the backend
In-depth Description
Whenever the websocket is disconnected, or the app has not been visible for 30 seconds, it syncs the local progress to the server and vice versa.
How have you tested this?
Played an audiobook on the server/web with app opened on my Android Phone
Scrolled through the audiobook in web, app progress was synced
Closed app for > 30 seconds
Saw a websocket disconnect in the logs
Opened app again, progress was synced -> This is not the case without this PR.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.