Questions tagged [android-doze-and-standby]
73 questions
2
votes
1 answer
Alarm Manager setRepeating stops working after a while
I know that there are similar questions around but none helped me... I'm trying to set a repeating alarm to fire a broadcast receiver, which will in turn fire an intentservice. I know about doze mode postponing alarms and I don't mind. At first the…

michaelg9
- 85
- 2
- 10
2
votes
1 answer
Doze and App Standby mode in Android 6.0
Google introduced Doze and App Standby mode with Android 6.0 OS.
Device will enter in Doze mode if device is unplugged and unused for some amount of time and if application stays inactive for some amount of time, that app goes in StandBy mode…

pratik03
- 651
- 2
- 7
- 23
1
vote
0 answers
Do a guaranteed execution of code every 15min even in doze mode
I have an active-monitoring healthcare application that needs to be synced with different BLE devices every 15min in order to collect vitals and essential data. For this, I am using a ForegroundService with a Notification, Additionally, I have taken…

GeekWithGlasses
- 572
- 2
- 12
- 30
1
vote
1 answer
How to use wifi in doze mode when app is on battery optimazition whitelist?
I am currently working on an Android app which should read sensor values from a bluetooth periperal and send them to a backend server. To enable this app to work when the screen is turned off, a partial wake lock is acquired and the app is put on…

dschick
- 11
- 1
1
vote
0 answers
Android - How do Music Apps continue to stream on Network even if device is in doze mode?
After reading the official documentation about doze mode in Android, is someone know how music app technically can stream track from Internet when the device enters in doze mode (so network is unavailable) ?

Hasina
- 335
- 3
- 13
1
vote
0 answers
Android Wake lock remains after Doze mode?
Iam trying to simulate the Doze mode while my app is running in the background.
What happens is that the thread will continue to run, even though the device has entered Doze mode. The docs specifies that wake locks are ignored, so why cpu is still…
user10137577
1
vote
1 answer
Avoid doze mode programmatically
I'm developing an Android app that uses Xiaomi Mi Band 1S to keep measurements of heart rate all the time. I use a service to handle Bluetooth connection and I already achieved to keep this service alive when the app is close, and even to restart…

Òscar Raya
- 598
- 5
- 26
1
vote
0 answers
Android, How to detect and to do a task in mode idle_maintenance?
I need to send tracking info when device is in DOZE mode.
According to page monitoring-device-state there are idle and idle_maintenance, I understand that when it is in idle_maintenance window, the applications can execute tasks. In my case I want…

Adan Condori C.
- 11
- 4
1
vote
0 answers
How to run my application when ever screen is unlock after Doze mode in OS 6 and 7
In my application there is a service which runs in background, but Doze mode kills it after a certain period. To overcome this problem, have created sticky notifcation thereafter it works perfecty well.
But when tested on Gionee A1, Vivo and onle…

Bhanu Sharma
- 5,135
- 2
- 24
- 49
1
vote
0 answers
GCM and doze Doze Mode wake up time
I plan to GCM high priority messages to wake up my device from doze mode. How much CPU uptime do I have until device goes into doze again?

georgeok
- 5,321
- 2
- 39
- 61
1
vote
1 answer
GCM priority message doesn't wake up my app
I have my Android device optimizing my app. So my app is sleeping in the background but it is supposed to wake up if a priority GCM message is received. As staten here:
High priority. GCM attempts to deliver high priority messages
immediately,…

Ton
- 9,235
- 15
- 59
- 103
0
votes
0 answers
Network access in Android DOZE Mode
The Android App targeting Android 9 and above is not been able to access the network in Doze mode. Have implemented a background sync service that pulls data from the central server in regular intervals. It all works till the time it enters into…

demonaxa
- 1
- 2
0
votes
0 answers
Keep socket connection open in webview on Android
I have a web app that is now being used in an Android app by launching it in a webview. Most of the Android functionality is native & the webview part is mainly just for communication via socket.io
It all works okay but as soon as the phone goes to…

Spider-Paddy
- 303
- 2
- 14
0
votes
0 answers
Android Doze mode kills foregreound MediaPlayer service
I've been researching awhile about how to keep active a constantly running audio playback in the background (online radio). For last I made a foreground service for it and its works for the most phones, but not on Samsung Android P and above... (as…

ZombieD
- 21
- 1
- 5
0
votes
1 answer
How long can an Android app run (that has Battery Optimization turned OFF) in the background before the system kills it?
I am building an Android app that needs to be in constant Bluetooth (Classic) communication with a peripheral device. As long as the app is running in the foreground, everything is fine. But when the app is put in the background, the system kills…

Sid Moi
- 1