Starcommander / StreamRadio

Play network-radio channels, and add your custom channels.
GNU General Public License v3.0
19 stars 8 forks source link

App stops after some minutes with Battery optimization (since Android 6) #5

Closed no-go closed 5 years ago

no-go commented 5 years ago

On my Android 8.1 (LineageOS) device the webstream stops, if it switch to a default deep-sleep mode. If I disable "Battery optimization" for WebRadio, stream/WebRadio did not stop the player.

Because the "Battery optimization" settings dialog is hard to find on Android, WebRadio should add a "Shortcut" to its options menu. This make user easier to deactivate the optimization like this:

webradio_akku_not_opt

Starcommander commented 5 years ago

Paradoxically on my Phone there is no problem, when phone is in sleep mode. (LineageOS 7.1.2) Technically there are some impressions regarding battery optimization: https://stackoverflow.com/questions/39256501/check-if-battery-optimization-is-enabled-or-not-for-an-app

no-go commented 5 years ago

Hi. Nice link. I think, it is not device independent, if battery optimization stops all network traffic. I had similar issue in a RSS Feed Reader App, where alarm entries never waked up on some devices.

no-go commented 5 years ago

fixed in https://github.com/Starcommander/StreamRadio/commit/311921bb6c931aaf743a73955ceb002f2ad81062