You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the solution you'd like
Trigger camera uploads only when the device is charging. A new check should be added to the camera uploads view, so I can select if camera uploads should be triggered when the device is charging. Pretty similar to the current option: Upload only when connected to Wifi. We should take into account that when multiple constraints are specified, the work will run only when all the constraints are met.
Additional context
Camera uploads are enqueued via WorkManager, and we can select different constraints. At the moment we only use network type to select that uploads should be triggered when connected to wifi, but we can add any of them:
Constraint
Description
NetworkType
Constrains the type of network required for your work to run. For example, Wi-Fi (UNMETERED).
BatteryNotLow
When set to true, your work will not run if the device is in low battery mode.
RequiresCharging
When set to true, your work will only run when the device is charging.
DeviceIdle
When set to true, this requires the user’s device to be idle before the work will run. This can be useful for running batched operations that might otherwise have a negative performance impact on other apps running actively on the user’s device.
StorageNotLow
When set to true, your work will not run if the user’s storage space on the device is too low.
TASKS
Research (if needed)
Create branch feature/feature_name
Development tasks
Implement whatever
...
Code review and apply changes requested
Design test plan
QA
Merge branch feature/feature_name into master
PR
App
Library (if needed)
The text was updated successfully, but these errors were encountered:
jesmrec
changed the title
[FEATURE REQUEST] Trigger camera uploads only when device is charging
[FEATURE REQUEST] Trigger camera uploads with different events
Sep 17, 2021
Describe the solution you'd like
Trigger camera uploads only when the device is charging. A new check should be added to the camera uploads view, so I can select if camera uploads should be triggered when the device is charging. Pretty similar to the current option:
Upload only when connected to Wifi
. We should take into account that when multiple constraints are specified, the work will run only when all the constraints are met.Additional context
Camera uploads are enqueued via WorkManager, and we can select different constraints. At the moment we only use network type to select that uploads should be triggered when connected to wifi, but we can add any of them:
TASKS
PR
The text was updated successfully, but these errors were encountered: