Closed
Bug 895991
Opened 11 years ago
Closed 4 years ago
Background services should stop when we receive battery and network warning intents
Categories
(Firefox for Android Graveyard :: Android Sync, defect, P5)
Tracking
(Not tracked)
RESOLVED
INCOMPLETE
People
(Reporter: cpeterson, Unassigned)
References
Details
(Whiteboard: [Power:P2])
Our Android background services should listen for system intents that warn about battery, network, or device storage conditions.
When we receive any of the following warning intents, we should probably stop our background services:
ACTION_BACKGROUND_DATA_SETTING_CHANGED (if disabled)
ACTION_BATTERY_LOW
ACTION_DEVICE_STORAGE_LOW
CONNECTIVITY_ACTION (if disconnecting)
When we receive any of the following intents, we should check whether battery, network, and device storage are "happy" before restarting our background services:
ACTION_BACKGROUND_DATA_SETTING_CHANGED (if enabled)
ACTION_BATTERY_OKAY
ACTION_DEVICE_STORAGE_OK
ACTION_POWER_CONNECTED
CONNECTIVITY_ACTION (if reconnecting)
Also, if we want to perform alert actions when we know the user is (probably) looking at their phone, we can listen ACTION_SCREEN_ON and ACTION_USER_PRESENT. If we want to perform actions when we know the phone is idling, we could listen for ACTION_SCREEN_OFF and ACTION_DREAMING_STARTED.
Updated•9 years ago
|
Whiteboard: [Power]
Updated•9 years ago
|
Whiteboard: [Power] → [Power:P2]
Updated•7 years ago
|
Product: Android Background Services → Firefox for Android
Comment 1•6 years ago
|
||
Re-triaging per https://bugzilla.mozilla.org/show_bug.cgi?id=1473195
Needinfo :susheel if you think this bug should be re-triaged.
Priority: -- → P5
Comment 2•4 years ago
|
||
We have completed our launch of our new Firefox on Android. The development of the new versions use GitHub for issue tracking. If the bug report still reproduces in a current version of [Firefox on Android nightly](https://play.google.com/store/apps/details?id=org.mozilla.fenix) an issue can be reported at the [Fenix GitHub project](https://github.com/mozilla-mobile/fenix/). If you want to discuss your report please use [Mozilla's chat](https://wiki.mozilla.org/Matrix#Connect_to_Matrix) server https://chat.mozilla.org and join the [#fenix](https://chat.mozilla.org/#/room/#fenix:mozilla.org) channel.
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → INCOMPLETE
Updated•4 years ago
|
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•