[Bug] Local playback sessions from the mobile app are not showing in daily stats chart #1137

Closed
opened 2026-04-24 23:33:46 +02:00 by adam · 10 comments
Owner

Originally created by @Drudoo on GitHub (May 12, 2023).

My server is not always on. With high electricity prices i turn on my server when needed. Most of my listening is therefore done offline using the iOS app.

I have noticed that my listening stats aren't updated when the server comes online. Progress is synced fine but my Recent Sessions doesn't show the offline sessions I've had.

Steps to reproduce

  1. Download a book to the app on iOS
  2. Turn off the server
  3. Listen to the book
  4. Turn on the server
  5. Stats are not appearing

Expected behaviour

  • When the server comes online again, i would expect listening stats to be send from the app to the server

Actual behaviour

  • No stats (just position) is send to the server

Environment data

Audiobookshelf Version:

  • Android App?
  • [ x] iOS App?

Android Issue

Android version:

Device model:

Stock or customized system:

iOS Issue

iOS Version:
16.4.1 (a)

iPhone model:
13 Pro

Audiobookshelf app version:
0.9.63-beta

Audiobookshelf server version
2.2.19

Originally created by @Drudoo on GitHub (May 12, 2023). My server is not always on. With high electricity prices i turn on my server when needed. Most of my listening is therefore done offline using the iOS app. I have noticed that my listening stats aren't updated when the server comes online. Progress is synced fine but my Recent Sessions doesn't show the offline sessions I've had. ### Steps to reproduce 1. Download a book to the app on iOS 2. Turn off the server 3. Listen to the book 4. Turn on the server 5. Stats are not appearing ### Expected behaviour - When the server comes online again, i would expect listening stats to be send from the app to the server ### Actual behaviour - No stats (just position) is send to the server ### Environment data Audiobookshelf Version: - [ ] Android App? - [ x] iOS App? #### Android Issue Android version: Device model: Stock or customized system: #### iOS Issue iOS Version: 16.4.1 (a) iPhone model: 13 Pro Audiobookshelf app version: 0.9.63-beta Audiobookshelf server version 2.2.19
adam added the bug label 2026-04-24 23:33:46 +02:00
adam closed this issue 2026-04-24 23:33:46 +02:00
Author
Owner

@davothegeek commented on GitHub (May 16, 2023):

I had the same experience the other week using the Android app offline while using aeroplane mode for several days (was out of coverage area) - no listening stats for those days.

Note - I do get listening stats for Local books provided there is server connection while listening.

@davothegeek commented on GitHub (May 16, 2023): I had the same experience the other week using the Android app offline while using aeroplane mode for several days (was out of coverage area) - no listening stats for those days. Note - I do get listening stats for Local books provided there is server connection while listening.
Author
Owner

@RingoRohe commented on GitHub (Oct 1, 2023):

This still a Problem. I noticed the same behaviour on Android. Listening Sessions are recorded and correctly listed under "Recent Sessions" but they dont count for overall Statistics. Seems the offline Sessions never get synched once the Server becomes available again.

@RingoRohe commented on GitHub (Oct 1, 2023): This still a Problem. I noticed the same behaviour on Android. Listening Sessions are recorded and correctly listed under "Recent Sessions" but they dont count for overall Statistics. Seems the offline Sessions never get synched once the Server becomes available again.
Author
Owner

@advplyr commented on GitHub (Oct 1, 2023):

@RingoRohe What is the version of your Abs server and mobile app?

@advplyr commented on GitHub (Oct 1, 2023): @RingoRohe What is the version of your Abs server and mobile app?
Author
Owner

@RingoRohe commented on GitHub (Oct 1, 2023):

App: 0.9.66-beta
Server: 2.4.4

@RingoRohe commented on GitHub (Oct 1, 2023): App: 0.9.66-beta Server: 2.4.4
Author
Owner

@advplyr commented on GitHub (Oct 1, 2023):

Is it possible the offline sessions are from books downloaded on or before server v2.2.24?

@advplyr commented on GitHub (Oct 1, 2023): Is it possible the offline sessions are from books downloaded on or before server v2.2.24?
Author
Owner

@RingoRohe commented on GitHub (Oct 1, 2023):

Because I cant rule out this possibility, I deleted the local audiobook I use for testing and re-downloaded it. Stopped the Server and startetd a short Session of a few Minutes. After that I killed the App, started the Server and restarted the App.
When I opened the Stats Page I noticed that again the Stats (Last 7 Days) did not change but the overall Stats (Minutes Listening) have. I was always just looking at the Last 7 Days Stats and did not notice the Minutes Listening in the upper right corner. So it seems only these Numbers do not update on offline playback. (they do update correctly when the server is reachable)

@RingoRohe commented on GitHub (Oct 1, 2023): Because I cant rule out this possibility, I deleted the local audiobook I use for testing and re-downloaded it. Stopped the Server and startetd a short Session of a few Minutes. After that I killed the App, started the Server and restarted the App. When I opened the Stats Page I noticed that again the Stats (Last 7 Days) did not change but the overall Stats (Minutes Listening) have. I was always just looking at the Last 7 Days Stats and did not notice the Minutes Listening in the upper right corner. So it seems only these Numbers do not update on offline playback. (they do update correctly when the server is reachable)
Author
Owner

@advplyr commented on GitHub (Oct 1, 2023):

I just tested this on android and was able to reproduce it. I think it's an issue with the stats request from the server actually. Looking into it

@advplyr commented on GitHub (Oct 1, 2023): I just tested this on android and was able to reproduce it. I think it's an issue with the stats request from the server actually. Looking into it
Author
Owner

@advplyr commented on GitHub (Oct 1, 2023):

This will be fixed in the next server release

@advplyr commented on GitHub (Oct 1, 2023): This will be fixed in the next server release
Author
Owner

@RingoRohe commented on GitHub (Oct 1, 2023):

Yeah! Great.
Thanks for your work. :)

@RingoRohe commented on GitHub (Oct 1, 2023): Yeah! Great. Thanks for your work. :)
Author
Owner

@advplyr commented on GitHub (Oct 29, 2023):

Fixed in v2.5.0

@advplyr commented on GitHub (Oct 29, 2023): Fixed in [v2.5.0](https://github.com/advplyr/audiobookshelf/releases/tag/v2.5.0)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/audiobookshelf#1137