Questions tagged [doze]
45 questions
1
vote
1 answer
Behaviour in Android Doze when using different Scheduler
I'm trying to optimize our app for Doze and AppStandBy and have implemented a
test application to understand the behaviour of the system when using different background schedulers.
However I'm very confused about the behaviour when using…

Dokumans
- 359
- 1
- 3
- 14
1
vote
0 answers
Android: Alarm triggered and turning on screen, but the alarm activity gets closed
I'm struggling with this problem for days... I have an app setting some alarms. When an alarm is triggered, an Activity showing a message must show, playing a sound and vibrating. When the device is connected with the USB cable to my PC, everything…

Ciammarica
- 141
- 3
- 17
0
votes
0 answers
Firebase cloud messaging not working in doze mode even with high priority
I am doing a e-hailing project. User will be placing order and driver will be receiving a notification when user placed an order.
For iOS, everything work fine. Notification can be received by driver without any issue when there is a new order for…
0
votes
1 answer
Can FCM normal priority message wake up device from doze mode?
I understand FCM normal priority message is not supposed to wake up device from doze mode, but is there any way to force it? E.g. using tasker events? Some system level parameters? I've been googling around but found no solution.
I really want…

dohanin
- 11
- 6
0
votes
1 answer
firebase_messaging not working in android 10 e latter after long period of inactivity of the app in FLUTTER
firebase_messaging not working in android 10 e latter after long period of inactivity of the app.
I configured services in the background, and it works up to version 9 of android. But in later versions it doesn't work, I've tried everything, even…
0
votes
0 answers
Testing Android Doze mode with background SIP connection - doesn't disconnect
I may be misunderstanding, but I have an app with a background SIP connection.
I want to test the effects of Doze mode and activate it while plugged in as follows:
{turn screen off}
adb shell dumpsys battery unplug
adb shell dumpsys deviceidle…

behelit
- 1,765
- 2
- 20
- 34
0
votes
0 answers
Detectign a beacon in Oreo after waking up from Doze mode
am trying to wake up my foreground service with http://www.davidgyoungtech.com/2017/08/07/beacon-detection-with-android-8#the-new-way-fast-detections
Expected behavior
See first beacon and send PendingIntent to BroadcastReceiver which is starting my…

Klimoma
- 11
- 2
0
votes
0 answers
Xamarin.Android application crashes when power saving mode is enabled
I've got a serious problem with power saving mode on Android. My application crashes when power saving mode is enabled. The problem manifests itself on Samsung Galaxy phones (or on any phone/emulator with AOSP or LineageOS), but it never happened on…

Sonikku
- 1
- 1
0
votes
1 answer
Using GPS with DOZE in Android 8
I have an app which runs a background service to monitor GPS location and compare it to a list of locations. When it finds a match, it sends a broadcast to trigger a foreground activity which then displays information about the location. The GPS…

Chris S
- 83
- 3
- 12
0
votes
1 answer
No internet connection during doze mode
In my application I need to download data from a website every 15 minutes. My problem is that when the phone is in doze mode the connection is absent due to energy savings.I tried with a WakefulBroadcastReceiver that is activated every 15 minutes by…

user10067214
- 37
- 8
0
votes
1 answer
DOZE-Standby interfering with Bluetooth reconnection logic
I have found an issue while programming my application on an Android Device. I am trying to continuously gather data from a BLE sensor (Nordic Thingy). Everything runs smooth, but if I get to a point where the device disconnnects for a while (e.g.…

Pablo Stark
- 682
- 10
- 34
0
votes
2 answers
Doze whitelist and deviceidle.xml
I'm trying to add my package in doze whitelist.
With ($ adb shell dumpsys deviceidle whitelist +PACKAGE), I can add my package in whitelist,
and this command makes change in the file /data/system/deviceidle.xml.
Now, I'm curious about who generate…

david
- 53
- 1
- 8
0
votes
1 answer
MediaPlayer: Is whitelist battery optimizations allowed?
I am building a clock radio app which, on my device, running Android 7.1.1 stops playing after a few minutes (2.5 - 4 roughly) when the user presses the powerbutton to switch off the display.
This is due to the device entering doze mode, I believe.…

Ben
- 265
- 3
- 13
0
votes
0 answers
Overcome doze in android for audio streaming
I am pretty new to android development. I am currently working for our company android app which is a real-time(low latency) audio receiver. The app works fine so far. But for Android versions >= Marshmallow because of the doze effect the network…

Deepak
- 11
- 2
0
votes
1 answer
Android doze mode and foreground service
I read many questions here about doze mode like Android doze mode, Android N Doze mode - how to keep background download and processing?, Wakelock and doze mode and many others. But in many replies, opinions is different. I can't test it by myself…

kara4k
- 407
- 5
- 11