Extension with Rush. Keep the app running. Doze mode. Service. Notification. Source code

I tried it on a Galaxy Note8 (Android 9) and a Pixel 2XL (Android 11). The Pixel 2X was the transmitter.

The Note8 is particularly sensitive to Doze mode.
It works perfectly (even after 30 minutes in idle mode). I have 18 test devices running Android 4.x - 12. I will test it on other devices later. But I'm pretty sure it will work there too, though, because the critical device for Doze has always been the Galaxy Note8 and the Galaxy S8 (both Android 9).

I also have a Huawei P20 lite that I have to charge first. I'll test that later...

:+1: :clap:
Works perfectly!
And even without a Foreground service.

You can always surprise us.

4 Likes

As expected, it also works great on my Huawei P20 lite (after putting it in idle mode 20 minutes ago).

So tell us which devices and Android versions.
And are you absolutely sure you have turned off battery optimization?

It also works on a Pixel 4XL (Android 12).
I don't think it is necessary to do further tests.

Yes I have performed the battery optimization elimination.
But it still does not work, indicates only one number, ignoring subsequent ones.

This, with the app, minimized, and suspended display.

Everything else works great. Nice problem.

Just sending a repeated beep and a notification would be enough, even without a speaker reading the numbers.
In short, as is the case with any Android component: Email-Whatsapp-Messages.

As I already said, which device & Android version?

Huawei p8 lite - Android 6

You mentioned two devices. And the other? I no longer have a test device with Android 6.

Huawei p8 Lite e Huawei p8 Lite

Since I don't have a test device with Android 6 (and there shouldn't be many of those left), I can't verify it. But it works on everyone else.

You have been very kind thank you all the same I hope sooner or later if I can understand the problem

Try it on any other device (Android version).
My attempts have all been successful.

I would be really interested to know if this is really a general problem with Android 6.

Please check on Android 6
So if anyone out there has two test devices where at least one is still an Android 6 device, please check with the APK where the Android 6 device needs to be the receiver (i.e. the Android 6 device is the one in idle mode).

So I explain every detail:

  1. I have two Androdi 6 mobile phones, on Hawey p8 lite
  2. I installed and started the app on both phones
  3. An app, I first disconnected the battery check, the request appeared: Do you want to allow the app service to remain active in the Background? It may affect battery consumption. I answered yes, then I did the sending test, pressing the "Send Random Number" button with the app still on the screen, on the other mobile phone and everything worked, the number was read.
    I minimized the App, but without suspending the phone, and everything worked.
    I suspended the phone and only the first number was read, the following ones were not.

I did the reverse test:

  1. I closed the apps and restarted them
  2. I did not press on battery consumption, I carried out the same operations and the result was the same.

No, I have other phones, I'll try to get them to borrow from friends but I don't think it's easy.

Besides, on other phones it worked with you, I don't see why it shouldn't work with me.

I think your tests on other phones are more than enough, but if it happens I'll try.

Thank you very much for your super kindness and your commitment to solving the problem.

I don't really know how to thank you otherwise, but I will try to purchase two extensions, so as to help keep this forum going, to show you my gratitude.

I hope the problem will be solved sooner or later.

I tried to buy two extensions to keep my promise, but to the second extension (Accensioen della torch)
The Paypal card asked me for my details twice and despite having entered them correctly it did not proceed to make me pay, so I no longer trusted the page and gave up the second one.

Good day.

Try this APK. I added a Foreground service. So do not turn of battery optimization.
Just click Start and put the device in idle mode (screen off).

Can I use an emulator to test this? I have one Android Marshmellow (Android 6) emulator.

Just tested, perfectly fine! :+1:

1 Like

Did you test with original app from @Juan_Antonio or with my APK?