Hello Cristian
Thanks for letting me know that detail, I will check it immediately.
As soon as I fix it I will let you know here.
Hello Cristian
Thanks for letting me know that detail, I will check it immediately.
As soon as I fix it I will let you know here.
Did you add a foreground service (to prevent Doze)?
@Joejsanz I had understood in another post about 'Keeping Alive' that to establish a wave lock it was just necessary to use the player and let it play a silent sound (which contains only silence) without necessary to use extensions.
Before I have time to test if this update is able to establish a Wave Lock and get around the Doze Mode, the question is:
Requires any kind of 'authorization' that will be barred by the rigid Google Play Protect current criteria that try to protect the user's battery life at any cost?
TIA
Lito
@>-->---
No, what I added was a PARTIAL_WAKE_LOCK, which keeps the CPU awake but allows the screen to turn off. @Anke
Lito is right about the battery
Generally, Google prefers apps to use PARTIAL_WAKE_LOCK, which keeps the CPU awake but allows the screen to turn off. This is less damaging to the battery than a FULL_WAKE_LOCK, which keeps the screen on all the time. @Lito
As I already mentioned several times, last here: App Keep alive always - #81 by Anke
But unfortunately that's not enough, after 5-8 minutes the Doze mode kicks in and the stream breaks off. I have various devices with Android 6, 7, 8, 9, 10, 11, 12, 13, 14 on which this happens.
To reliably prevent Doze, you also need a Foreground service.
True, I tested it on my Android 11 device and it closed, and on Android 14 it didn't close, but that's because my v-14 device doesn't close anything when off and I was testing it on that.
Tonight I'll look into implementing the foreground service.
@Joejsanz OK.
But I did not see any 'extra' block within the extension that allows the option to make the Screen off...
I need to understand better how it works...
I don't know how a Partial_Wake_Lock works...
In fact, I've been looking for a way to turn off the Screen to save battery... and I could almost get it! But I found limitations that soon I will open a topic to see if I find any help...
Lito
@>-->---
ok ok friend I will check the extension and I will let you know the results
Hello friend, I told you that I carried out the tests and it presented the same behavior. After a few minutes, the application lets you emit audio but it does not close.
Hello, again I want to tell you that when I upload a URL of Zeno Radio to your extension, it has an unexpected effect, but when the application is installed on the cell phone, I leave you the URL of Zeno Radio so that you can detail it yourself.
It's an implementation that is started by calling the play and stop blocks. I'm looking at that too, I thought I had it already, but I'll have to look into it further. @Lito
I've been doing some tests and it still behaves the same. I also noticed that it has errors with the transmissions, apparently it's not compatible. I'm checking that.
I was testing, creating code, but the device always stopped the music, so I decided to try the itoo extension and it works well, here I will leave an example:
@Cristian_Geovani_Car The station you shared sounds perfect with the device off, it doesn't stop playing anymore.
I have updated the extension to remove the PARTIAL_WAKE_LOCK, you will need to update the extension so that there can be no problems with playback.
And the option to make the Screen Off... Was it ignored after this update?
Lito
@>-->---
Yes, for now, while I investigate more on that.
ok friend, thanks for helping us, I'll try the extension
Try this app:
Enter your own URL and put the device in idle mode (screen locked) and check if the music continues to play after 7-8 minutes or more.
I had the opportunity to try the demo that you present above and it seems to me that it has a good response time while it is loaded into memory
I came to the conclusion that everything depends on the speed of internet propagation.
I thought the question was whether the audio stream/music stops because Doze mode shuts down the CPU, internet, etc. So does the music continue to play on your test device after 7-10 minutes or longer? On my test devices the music plays until the battery gives up.