best-practices-mobile
best-practices-mobile copied to clipboard
Environmental > Power > Battery-constrained Work
The method Constraints.Builder#setRequiredNetworkType(NetworkType.UNMETERED)
should also be considered as a hint of available WiFi (less energy-greedy than 4G/5G). If so, the detection rule is valid but it is out of scope of the Power
category.
documentation: https://developer.android.com/training/connectivity/minimize-effect-regular-updates#app-initiated