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 can I programmatically wake up android device in Doze mode for running background processes

I have an application that runs in the background on Android device. The application performs certain tasks which are scheduled from a control panel. Normally the tasks are performed when requested. However many times the device goes into Doze mode…
Ram Ramesh
  • 169
  • 1
  • 2
  • 9
0
votes
1 answer

Behaviour of Android / iOS when receiving Bluetooth LE communcation during doze

I'm developing an app in Ionic/Capacitor/Vue for both iOS and Android, but now I am in need of some guidance. The app will communicate with a satellite antenna over Bluetooth LE. I'm using https://github.com/katzer/cordova-plugin-background-mode to…
aanders77
  • 620
  • 8
  • 22
0
votes
1 answer

Battery optimization and foreground services

I have a few questions about certain behavior on Android devices. I'm using SDK which ask the user to turn-off battery optimization for the app. I'm also running a foreground service which implements some interfaces from said SDK. I need the…
Keselme
  • 3,779
  • 7
  • 36
  • 68
0
votes
0 answers

Receive notifications after app is in Doze

Given Target OS versions: 4.4 – 10; App meant to be published in Google Play; App idea is public transport tracking (notifying when the specific bus is about to arrive to specific bus stop). Problem I was working on implementing notifications that…
0
votes
0 answers

How can I make my app running also in Doze mode without Partial_Wakelock?

I wonder; How can we our App work in Doze Mode without using Partial_Wakelock? or without high battery usage ?
0x000000F4
  • 60
  • 8
0
votes
0 answers

Is it possible to disable Doze mode via adb command executed from Android app?

I have a requirement to disable the doze mode completely on my phone from my android app. I was able to find that the following command can disable Doze mode in Andriod. adb -d shell dumpsys deviceidle disable I made a small sample to run the above…
Deepak V
  • 299
  • 2
  • 15
0
votes
0 answers

Keep Streaming service running over MediaBrowserService when Doze Mode

I am working on a Android Streaming App using MediaBrowserServiceCompat based on this great article https://medium.com/androiddevelopers/mediabrowserservicecompat-and-the-modern-media-playback-app-7959a5196d90. My app works pretty good except when…
0
votes
0 answers

Is it ok to use setAlarmClock to bypass Doze mode?

I'm developing an app that requires the user's movements to be tracked continuously - using a foreground service. The app should work even when it's in background and screen is off. I don't really need to track it in real time, so, to avoid…
arvere
  • 727
  • 1
  • 7
  • 21
0
votes
1 answer

Display Alarm Notifications while application is in Doze mode?

I have an requirement where I need to Wakeup the screen for non-whitelisted app to display the Alarm notifications while application is in Doze mode. I have gone through the android.developer.guide and I could see we can display the alarm…
NikhilReddy
  • 6,904
  • 11
  • 38
  • 58
0
votes
0 answers

How to get GPS updates in doze mode 8.0 Oreo devices?

I'm using a foreground service to fetch GPS with an interval of 30 seconds and save it in DB. I use alarm manager to post GPS logs every 15 minutes from DB,this seems to work even in doze mode with setExactAndAllowWhileIdle() but GPS passively…
0
votes
1 answer

What is "*alarm*:*job.heartbeat*"?

I have found the reference to "*alarm*:*job.heartbeat*" in JobSchedulerService.java and it appears that as the name of file suggests, "*alarm*:*job.heartbeat*"is related to scheduling of jobs and when I took the log of dumpsys batterystats, I found…
wiki
  • 1,877
  • 2
  • 31
  • 47
0
votes
2 answers

Android check is bluetooth in doze mode

Good day. I would like to know if the bluetooth scanning is unavailable now (locked by doze mode?). Now i check it by this method: fun isInDozeMode(context: Context) : Boolean { val powerManager = context.getSystemService(Context.POWER_SERVICE)…
0
votes
1 answer

Keep ForegroundService alive When in Doze Mode

Running foreground services doesn's prevent device from going to sleep. You must require a wakelock. Does this also apply in Doze mode? For example: You run a foreground service and then turn the device's screen off. In general doze's mode…
user10803305
0
votes
1 answer

Counting Steps with JobService and STEP_COUNTER Sensor

I’ve implemented a steps counting feature in my app. I used a JobService which listens to the Sensor.TYPE_STEP_COUNTER events and it is working. I have 2 issues and maybe someone could help: 1) If the app isn’t opened everyday, because of doze…
0
votes
1 answer

Unable to read sms Using Broad cast receiver from OREO

Reading Otp from SmsManager and update the text feild Automatically. I followed below article Automatically-read-OTP from SMSes — Android 4.3 to 8.x by STYLABS https://link.medium.com/sk22tU4qTR I'm facing issue while implementing.. It works below…