Energy Patterns for Mobile Apps

← show all patterns

WiFi Over Cellular

WiFi Over Cellular

Delay or disable heavy data connections until the device is connected to a WiFi network.

Context

Data needs to be syncronized with a server but it is not urgent and can be delayed.

Solution

Data connections using cellular networks are usually more battery intensive than connections using WiFi. Low priority operations that require a data connection to exchange considerable amounts of data should be delayed until a WiFi connection is available.

Example

Consider a mobile app to organize photos that allows users to backup their photos in a cloud server. Use an API to check the availability of a WiFi connection and postpone cloud synchronizing in case it cannot be reached.

References

Occurrences

Android

Issues
Pull Requests
No pull requests.
Commits

iOS

Issues
Pull Requests
Commits
No commits.