Constraints
Platform conditions that must be satisfied before a task can execute.
Platform support matrix: | Constraint | Android | iOS | |--------------------|---------|---------| | requiresInternet | ✅ | Partial | | requiresCharging | ✅ | ❌ | | batteryNotLow | ✅ | ❌ |
On iOS, only internet connectivity is partially respected via BGProcessingTaskRequest.
Constructors
Properties
Task should only run when battery level is not critically low. Android only.
Content URIs to observe for changes. Android only. When any of these URIs change, the task will be triggered.
Task should only run when the device is charging. Android only.
Task should only run when the device is idle. Android only (API 23+).
Task should only run when a network connection is available.