Offline books available while trying to connect to server. #561

Closed
opened 2026-04-24 23:28:43 +02:00 by adam · 3 comments
Owner

Originally created by @jimski427 on GitHub (May 24, 2023).

Is your feature request related to a problem? Please describe.

A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

When opening the abs app in poor cell conditions on Android, there is a delay playing offline books. It can take up to 30 seconds at times to have a book downloaded to the phone available to click on to play off line.

Describe the solution you'd like

A clear and concise description of what you want to happen.

Offline books available right away while it tries to connect to the server in the background.

Additional context

Add any other context or screenshots about the feature request here.

Screen cap of it happening.
https://imgur.com/a/gKnz7SB

Originally created by @jimski427 on GitHub (May 24, 2023). ### Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] When opening the abs app in poor cell conditions on Android, there is a delay playing offline books. It can take up to 30 seconds at times to have a book downloaded to the phone available to click on to play off line. ### Describe the solution you'd like A clear and concise description of what you want to happen. Offline books available right away while it tries to connect to the server in the background. ### Additional context Add any other context or screenshots about the feature request here. Screen cap of it happening. https://imgur.com/a/gKnz7SB
adam added the enhancement label 2026-04-24 23:28:43 +02:00
adam closed this issue 2026-04-24 23:28:44 +02:00
Author
Owner

@hobesman commented on GitHub (May 24, 2023):

Just to add, based on the video that was shared in discord, the period of unavailability of local books might be after the app concludes the server is reachable but before the app receives enough data to load the full home page (which might never happen).

@hobesman commented on GitHub (May 24, 2023): Just to add, based on the video that was shared in discord, the period of unavailability of local books might be _after_ the app concludes the server is reachable but before the app receives enough data to load the full home page (which might never happen).
Author
Owner

@advplyr commented on GitHub (Jun 5, 2023):

@hobesman is correct. What was happening is the server connected successfully but the network connection going in and out causes the home page to reload the items on the server. Or there might be a case where the request to connect to the server is successful, but the request to get the items times out.

The solution I put in place for this is to show text at the top of the screen if server items are being fetched. If there are no local items and no server items then you will see the regular loading indicator.

image

@advplyr commented on GitHub (Jun 5, 2023): @hobesman is correct. What was happening is the server connected successfully but the network connection going in and out causes the home page to reload the items on the server. Or there might be a case where the request to connect to the server is successful, but the request to get the items times out. The solution I put in place for this is to show text at the top of the screen if server items are being fetched. If there are no local items and no server items then you will see the regular loading indicator. ![image](https://github.com/advplyr/audiobookshelf-app/assets/67830747/ca29a615-0928-49d3-8a1d-c0af26b42eea)
Author
Owner

@advplyr commented on GitHub (Jun 25, 2023):

Updated in v0.9.65-beta

@advplyr commented on GitHub (Jun 25, 2023): Updated in [v0.9.65-beta](https://github.com/advplyr/audiobookshelf-app/releases/tag/v0.9.65-beta)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/audiobookshelf-app#561