App Keep alive always

:question:

Try my blocks and you will see everything (including TinyDB) works fine.


Here is a test aia: UrsKeepAliveServiceTest_Update_2.aia (598.7 KB)

Ok, TinyDb works in my .aia also.
I had to disable battery optimizations for the app

Thank you for your support

How should this only affect TinyDB (but not the timer)?
I don't have to disable anything at all to make it work for me.

@Anke This works fine because the Player has a checkbox property on the Designer called 'PlayonlyinForeground' that needs to be disabled, correct?

@>-->---

Yes, this is disabled by default.

1 Like

Speech to Text doesn't have the ability to keep the device awake... It would be good if it also had this Property.

@>-->---

I made some tests.
Now I am able to use GPS location in background, using last version of Ullis Keep Alive extension + sound player. (Android 14)
Thank you

This one?

grafik

I tested the new version and it works fine together with the WakeLock ext. So no Player/Sound necessary. But as I said severaly time, REQUEST_IGNORE_BATTERY_OPTIMIZATIONS is then declared in the Manifest (-> Play Store).

@Anke Is there any 'Keep Alive' extension that works well to reproduce sound and not barred by the Play Store? :pray:

@>-->---

As said, by playing (looping) a (silent) sound a WakeLock is established (without REQUEST_IGNORE_BATTERY_OPTIMIZATIONS).

But do you need to use this extent to prevent Doze Mode?

image

@>-->---

KeepAlive extension version 1.11.19 Built 2024-09-21
1

I'll try.
Do you ask for partial wakelock through the WakeLock extension ?

I tested it with Ulli's test aia, added a timer ... and this works fine in idle mode.

It works !
During idle time (screen off) GPS locations, SMS sending and network connection remain active.

SMS receiving do not remain active, but I think is related to SMS default app.
I tried this extension SmsAppTools: Ask user to select your app as default SMS App with updated (Android 14) manifest changes , without solving.

The question should answer itself. :upside_down_face:

Do you notice any difference between using the WakeLock ext. and playing a silent sound?

No difference, but I haven't done any long tests
In the next days I'll do other tests and I'll give you feedback

1 Like

Confirmed, no difference between extension and playing silent sound