Questions tagged [android-doze]

Doze mode introduced with Android 6.0 Marshmallow as a power-saving feature.

The Doze mode was introduced with Android 6.0 Marshmallow to improve the power usage of the device. If the device is not charging and had no user interaction for some time, the usage of CPU and network gets restricted by deferring background tasks and executing them in batches during maintenance windows.

191 questions
0
votes
0 answers

How to run continuous periodic backgroundwork (with 15 mins periodic Interval) in Oreo (API level 28) and later that runs even in doze mode?

Starting from Android 6.0 (API level 23), Android introduced Doze Mode and introduced various restrictions on background processing in Android. Android also introduced WorkManager API which makes it easy to specify asynchronous tasks and when they…
0
votes
1 answer

Android Background Location Updates - Different Number of LatLongs in Kitkat And Marshmallow Devices

I am developing an app that gets current latlongs of a device and stores them in a file in a new line. I ran my app on kit kat version 4.4.4 and on marshmallow version 6.0.1. I took both device in my car for testing and took a long ride around the…
Shaw
  • 173
  • 2
  • 11
0
votes
2 answers

Android does not exit doze mode when moving with device

So some background, i am developing a location tracking application. I have a service running that gets gps updates using the fused location provider. When the app is closed or the device is locked my service is moved to the foreground. It also uses…
Tony_89
  • 797
  • 11
  • 39
0
votes
1 answer

Android Oreo, wifiManager.getScanResults() returns empty list in Doze

I'm having issues with wifiManager.getScanResults() returning empty list on Oreo (API26), when device enters Doze mode. Before it enters Doze, and also on earlier API versions everything works fine (I get a list of ScanResults). I call this method…
Peter
  • 340
  • 4
  • 13
0
votes
1 answer

Open Push Message after long inactivity

I have an android app that uses push. If the app receives a push message from the server it creates a push notification (with headline, message, icon) and presents it to the user. normal case The click on the notification opens up an Activity (not…
0
votes
1 answer

Launch Activity from FCM

In my application, i need to launch an activity and turn screen on, when high-priority FCM message is received. It's an alarm activity, which is very, very important for users. On most Android devices, the code is working fine. However, on some…
Kelib
  • 648
  • 2
  • 7
  • 15
0
votes
1 answer

Android background service location updates and Doze

My app lets people record routes when driving. To ensure locations are actually recorded, i use a service so that they are recorded even if the activity is killed. To avoid the device being put into Doze, which would mean not getting frequent…
0
votes
1 answer

Android: Can Android 7.0 OS cancel network requests made by the app in, in doze mode

I have an Android app and I seeing this particular pattern in the network calls made by my app. The device send http requests properly when an app is started. But after sometime, I start seeing lot java.io.IOException: Canceled in the logs. I am…
Kanika
  • 714
  • 8
  • 24
0
votes
0 answers

Disable doze mode when countdown timer is running

I am developing an app In which countdown-timer is running when user start timer Everything is perfect Now the issue is timer stuck when user lock his device (doze mode or sleep or idle). Please help if anyone knows that how to prevent our app from…
0
votes
1 answer

Tracking users periodically in doze mode

I want to track users in specific period and times of days. I start alarm manager in every 2 minutes (i get periodic time from server and this is dynamic in my application) and try to get location about one minute, after that i stopped getting…
0
votes
1 answer

Android Doze: will it affect entire application or its processes separately?

I need to collect GPS data, save it to database and then send it to backend every minute. And I just want to make sure that Doze mode will not screw things up. Let's assume that I launch my foreground service and implement onLocationChanged…
0
votes
2 answers

Remove app from whitelist in android marshmallow

I didn't find useful info how to programically or using device's settings remove specific app from white-listed. In android 6.0 was introduced doze-mode and while-listed, the last term allows ignore partially doze-mode. To put app in white-listed…
user2930077
  • 135
  • 2
  • 9
0
votes
1 answer

Doze mode is making critical to my app

I think this question is asked many time in stackoverflow but still so many people struggling to resolved it. In my android app I have to wake up device for every 30 minutes to getting current location and send it to server. For this I have used…
Ashish Patel
  • 304
  • 1
  • 3
  • 11
0
votes
0 answers

Any way to prevent alarm from firing if it did not run because of doze mode?

This Doze mode makes it quite hard for me to implement proper alarms system. Basically I want to allow my user to run a webservice call each 15 or 30 minutes for instance. So let's say the user sets the app to run the alarm each 30 minutes. While…
Alin
  • 14,809
  • 40
  • 129
  • 218
0
votes
1 answer

Does Doze apply to apps with minSdk 21 on Marshmallow devices?

My app has minSdkVersion 21 targetSdkVersion 25 compileSdkVersion 25. I am using AlarmManager for some critical periodic checks - this is the client's requirement; they don't want the checks to be skipped or delayed. I'm not sure how my app and…
1 2 3
12
13