Android Question Repeating alarm...

tigrot

Well-Known Member
Licensed User
Longtime User
Hi everybody
I need a repeated alarm from a background app. I have an old app of mine, using foreground service and StartServiceAt. No way to get alarm if phone sleeps😁. This happens on new versions of Android, not on older o es.
No way to keep this process awake?
Thank you in advance
Ciao
Mauro
 

DonManfred

Expert
Licensed User
Longtime User
You need to have a partialwakelock in your foregroundservice.
 
Upvote 0

teddybear

Active Member
I need a repeated alarm from a background app. I have an old app of mine, using foreground service and StartServiceAt. No way to get alarm if phone sleeps😁. This happens on new versions of Android, not on older o es.
No way to keep this process awake?
If your app is a pure reminder, you may use system alarm
if it is for scheduled task, you may refer to this
 
Upvote 0

Hamied Abou Hulaikah

Well-Known Member
Licensed User
This happens on new versions of Android, not on older
This what we faced, new Android os kills almost of background services!
I made my scenario of two services each one call another with callsubdelayed every 10 seconds using timers, this keeps my background services run longer for several days if I don't interact with it, BUT B4A log warns me about this scenario 😊 as it not good way.
 
Upvote 0
Top