Questions tagged [android-appstandby]
17 questions
17
votes
0 answers
How to detect if App has gone in or out of App Standyby Mode ( Android M+)
If the device is in DOZE IDLE or IDLE_MAINTENANCE mode, these events can be received if we register a broadcast receiver for "android.os.action.DEVICE_IDLE_MODE_CHANGED". But this receiver is not working when making App to go into App Standby using…

Adil Bhatty
- 17,190
- 34
- 81
- 118
11
votes
0 answers
android 7.1.1 (Nougat) app standby and network
I need to issue network calls when the app is in background. The sequence is as following. The app receives GCM call, issues API call to BE in order to get some more data, and then show notification.
The GCM call is received perfectly, but the API…

SemyonM
- 135
- 7
9
votes
2 answers
NotificationListenerService and Doze mode and App Standby
I have an app that listens for phone notifications and sends a message to an Android Wear watch via the MessageApi. Everything works good except for some devices with Android 6, especially Huawei Mate 8 (looks like all Huawei Android 6's do…

shelll
- 3,234
- 3
- 33
- 67
8
votes
1 answer
how to turn off doze mode for specific apps in marshmallow devices programmatically
Marshmallow APIs are very different from previous android OS. When screen is off, devices are in doze mode and unable to sync network. So for doing background operations with network we have to prevent from doze mode.

Krishna
- 1,556
- 13
- 21
5
votes
1 answer
Android 6.0 - App Standby and AppWidgets
What is Google's definition of a user "actively using" an app, in the context of app widgets? If an app hasn't been opened for a long period of time but has a widget on the home screen, does anybody know if Android will put that app in standby…

dennisdrew
- 4,399
- 1
- 25
- 25
3
votes
0 answers
When app goes to Restricted App Standby Buckets
As android-12 introduces a new Restricted standby mode. as per android doc, it says the app goes to restricted mode based on app behavior + app usage
The system considers your app's behavior, in addition to usage
patterns, to decide whether to…

Chirag Bhuva
- 851
- 7
- 14
2
votes
1 answer
Android - Disable Forced DozeMode or AppStandByMode
I have an application that uses a ForegroundService to send location updates to a server. Basically a tracker.
This ForegroundService has a Handler that periodically (using postDelayed) executes a block of code to send the location.
This works…

sebasira
- 1,739
- 1
- 22
- 41
2
votes
1 answer
Is it possible to run an Android Periodic and Onetime workers during Doze Mode or App Standby?
I have an app that uses both periodic and onetime workers to perform various tasks, some of which require a network connection. My client reported to me that a certain required daily task was not performed on a day he did not use the app at all. …

Peter Jacobs
- 1,657
- 2
- 13
- 29
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
0 answers
battery optimization not available for some applications. how it could be?
i want to disable battery optimization for my application. i know that showing dialog with REQUEST_IGNORE_BATTERY_OPTIMIZATIONS is the way that user can disable that. but in some apps like QK SMS, it's fully disabled even in battery settings. how…

Reza Zarchi
- 47
- 1
- 6
1
vote
0 answers
FCM doesn't work when my App is in "App Standby mode"
I'm building an Android App that implements a chat using the Sendbird service.
Sendbird uses the FCM (Firebase Cloud Messaging) to send the notifications of a new messages received when the App is in background.
All works fine if the Android Energy…

Lorenzo Morri
- 13
- 5
1
vote
1 answer
How to avoid app standby for background sync app?
According to Understanding App Standby an app can be put into standby if it appears as if the user doesn't use it on a regular base.
We have calendar & contact sync apps which are set up once and (ideally) run in the background without interacting…

Marten
- 3,802
- 1
- 17
- 26
0
votes
0 answers
What counts as an "excessive number of broadcasts within a 24 hour period" for Android 13?
According to this section in the Android standby buckets doc:
On Android 13 (API level 33) and higher, unless your app qualifies for an exemption, the system places your app in the restricted bucket [...] if your app invokes an excessive number of…

user17313401
- 1
- 2
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
Is there a way to pull a list of apps on an android phone?
So a bit of backstory as to what i'm trying to do. I'm working on an idea for an app which can scan what apps are on your phone, the bar codes of groceries and other things and display information on what environmental impact they have.
So what i'm…

Darren Gillespie
- 1
- 1