Android App Sleep timer not working #97

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

Originally created by @justinwoodland on GitHub (Apr 24, 2022).

Steps to reproduce

  1. Play an audiobook
  2. Press the sleep timer button

Expected behaviour

Sleep timer starts, counts down until 0 and stops playback.

Actual behaviour

Playback stops immediately and no countdown started.

Environment data

Audiobookshelf Version:
Android App version: version 0.9.41-beta
Server version: 2.0.2

Android Issue

Android version:
11
Device model:
OnePlus 7T
Stock or customized system:
Stock

Originally created by @justinwoodland on GitHub (Apr 24, 2022). ### Steps to reproduce 1. Play an audiobook 2. Press the sleep timer button ### Expected behaviour Sleep timer starts, counts down until 0 and stops playback. ### Actual behaviour Playback stops immediately and no countdown started. ### Environment data Audiobookshelf Version: Android App version: version 0.9.41-beta Server version: 2.0.2 #### Android Issue Android version: 11 Device model: OnePlus 7T Stock or customized system: Stock
adam added the bug label 2026-04-24 23:07:02 +02:00
adam closed this issue 2026-04-24 23:07:03 +02:00
Author
Owner

@advplyr commented on GitHub (Apr 24, 2022):

I'm not able to replicate this, have you tried with different audiobooks?

@advplyr commented on GitHub (Apr 24, 2022): I'm not able to replicate this, have you tried with different audiobooks?
Author
Owner

@justinwoodland commented on GitHub (Apr 25, 2022):

I have tried it with several different audiobooks. I've also noticed that after playback stops and I shake my phone (stumbled upon the feature to reset the timer before this issue occurred, but great feature) I hear a fraction of a second of playback and then it stops again, like the timer is being set to a very short interval.

I've collected the following from logcat while enabling a timer:

2022-04-24 22:29:53.036 28662-28662/? D/SleepTimerManager: Setting Sleep Timer for 900000 is chapter time false
2022-04-24 22:29:53.037 28662-28662/? D/SleepTimerManager: Timer Elapsed 1000 | Sleep TIMER time remaining 0 s
2022-04-24 22:29:53.037 28662-28662/? D/SleepTimerManager: Sleep Timer Pausing Player on Chapter
@justinwoodland commented on GitHub (Apr 25, 2022): I have tried it with several different audiobooks. I've also noticed that after playback stops and I shake my phone (stumbled upon the feature to reset the timer before this issue occurred, but great feature) I hear a fraction of a second of playback and then it stops again, like the timer is being set to a very short interval. I've collected the following from logcat while enabling a timer: ``` 2022-04-24 22:29:53.036 28662-28662/? D/SleepTimerManager: Setting Sleep Timer for 900000 is chapter time false 2022-04-24 22:29:53.037 28662-28662/? D/SleepTimerManager: Timer Elapsed 1000 | Sleep TIMER time remaining 0 s 2022-04-24 22:29:53.037 28662-28662/? D/SleepTimerManager: Sleep Timer Pausing Player on Chapter ```
Author
Owner

@heikomat commented on GitHub (Apr 25, 2022):

I too have the same problem.
The playback immediately stops.

yesterday evening, when setting the sleeptimer to 90 minutes it showed as something about negative 7000 seconds.
But most of the time playback just instantly stops.
Some minutes later choosing any sleeptimer-value set the timer 5 minutes, no matter what i chose.

I'm on a Pixel 3 with Android 12. The bug seemed to have appeared in app version 0.9.41, but i might have missed a version.
Updating to the current 0.9.42 didn't fix it

Edit: My girlfriend has the same problem. Pixel 5 with android 12, same app versions

@heikomat commented on GitHub (Apr 25, 2022): I too have the same problem. The playback immediately stops. yesterday evening, when setting the sleeptimer to 90 minutes it showed as something about **negative** 7000 seconds. But most of the time playback just instantly stops. Some minutes later choosing any sleeptimer-value set the timer 5 minutes, no matter what i chose. I'm on a Pixel 3 with Android 12. The bug seemed to have appeared in app version 0.9.41, but i might have missed a version. Updating to the current 0.9.42 didn't fix it Edit: My girlfriend has the same problem. Pixel 5 with android 12, same app versions
Author
Owner

@advplyr commented on GitHub (Apr 26, 2022):

Thanks for the logs. It will be fixed in the next release.

@advplyr commented on GitHub (Apr 26, 2022): Thanks for the logs. It will be fixed in the next release.
Author
Owner

@advplyr commented on GitHub (Apr 30, 2022):

Fixed in v0.9.43-beta

@advplyr commented on GitHub (Apr 30, 2022): Fixed in [v0.9.43-beta](https://github.com/advplyr/audiobookshelf-app/releases/tag/v0.9.43-beta)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/audiobookshelf-app#97