Questions tagged [doze]

45 questions
2
votes
0 answers

Android doze mode interrupts WebRTC call

When de app is in the background for a while (usually about half an hour) the connection is broken. The logs do not show anything, even while I have created a partial wake lock and put the app on the Doze whitelist. This causes the media flow to be…
2
votes
2 answers

How to build a radio app without being affected by doze android?

Refered to this library https://github.com/iammert/RadioPlayerService I have this code for playing/pause radio if (!mRadioManager.isPlaying()) mRadioManager.startRadio(RADIO_URL[0]); else …
Erald Haka
  • 182
  • 2
  • 10
2
votes
1 answer

Dealing with Android-Doze mode on my BLE monitoring app while user's sleeping

I made the device which monitors person's health in sleep time and it connects to a smartphone via BLE. It's working great with the iOS app. But since Doze mode came on Android world. It's really hard to deal with it because my device is working in…
Bright Lee
  • 2,306
  • 2
  • 27
  • 55
1
vote
1 answer

Service needs to run Continuously when device is locked/enter into Doze Mode

My App needs to run in background continuously to send the location updates to the server. I tried Timer , Job Scheduler with background service none of these didn't worked. Its working fine when device is active, after entering into Doze mode the…
Gopinath
  • 21
  • 4
1
vote
1 answer

How to keep internet connection alive for a long time on android?

We are creating internal app which needs to have unkillable or very long living websocket connection. How can I achieve that? I have it working in foreground service, disabled battery optimization etc. but it doesnt seem to work. I tried all…
KubenQPL
  • 113
  • 2
  • 11
1
vote
1 answer

Issue with using Ably in Doze mode

I use Ably API as a way to communicate between two Android devices (mobile phones). The first one is a "Master" which sending a request to the second ("slave"). the main part of "Slave" is background service which is awaiting for the command from…
volganap
  • 23
  • 3
1
vote
1 answer

Android Doze mode management as root

I am working at an app that is meant to fully take over a phone if it has root access. The application takes pictures at a set interval, and uploads them to a ftp server. The use case for it is to turn old phones into security cameras, or for…
Radu
  • 923
  • 2
  • 9
  • 21
1
vote
1 answer

Android 9 :Foreground Service with notification stops after phone goes to dozes mode

We are using location updates in constant intervals to provide our service using Foreground service. With Android 9 the service completely stops until user unlocks the screen. It is working fine in Android O and pre O devices. I turned to internet…
rana
  • 1,824
  • 3
  • 21
  • 36
1
vote
0 answers

How to use correctly in Android the permission REQUEST_IGNORE_BATTERY_OPTIMIZATIONS to allow the GeofenceAPI working also during doze?

I have an Android App using the Geofence API val intent = Intent(contextProvider.context, GeofenceReceiver::class.java) val pendingIntent= PendingIntent.getBroadcast(contextProvider.context,0,intent,PendingIntent.FLAG_UPDATE_CURRENT) val builder =…
Filippo
  • 11
  • 2
1
vote
1 answer

What is Android process "ash" & how to prevent it from hibernating my app? (Android 7.0 doze mode)

I wrote an app that needs to wake up once per minute as long as it's running using a broadcast receiver declared in the manifest and triggered by AlarmManager.setAlarmClock() since it's the only exact solution that seems to be working on Android 7+…
1
vote
0 answers

Wake up device ,Once it enters in to Doze mode

I am developing app to check which has to connect to MQTT Server to get messages from server.When android device enters in to DOZE mode,Client(Android) is automatically disconnecting because network is suspended but active. Once device enters in to…
kavie
  • 2,154
  • 4
  • 28
  • 53
1
vote
1 answer

Android NotificationListenerService Background execution limit / Doze

With the introduction of Doze in Android M and Android getting more and more restrictive with background executions during Doze. Could someone elaborate if the same thing applies when extending Android's own services. For example…
1
vote
1 answer

Android app does not work in doze mode

I'm building an application on Android Nougat, which will work constantly (in active mode and in a doze mode (when phone is sleep)). The problem is that after about 6 hours of inactivity Android stops the application. There is a UI with activity and…
OlegS
  • 61
  • 1
  • 5
1
vote
0 answers

When turn on doze mode on an emulator it doesn't work

When I turn on doze mode on an android emulator using adb shell it just freeze. I cannot reboot it and emulator restarting doesn't help. I use the following commands for turn doze mode on: adb shell dumpsys battery unplug adb shell dumpsys…
Alex.Marynovskyi
  • 1,264
  • 3
  • 16
  • 22
1
vote
1 answer

Does device enter doze mode while foreground service running

My app needs to run in background for long time and periodically send data to server. I tried AlarmManager but it is restricted in doze mode. I next thought is the foreground service. Does the device enter doze mode while a foreground service is…
jarly
  • 231
  • 1
  • 4
  • 16