green-code-initiative / ecoCode-android

Reduce the environmental footprint of your Java-based Android apps with SonarQube
https://ecocode.io
GNU General Public License v3.0
54 stars 17 forks source link

[IOS] Sobriety - Disabled Location Updates Pause (ESOB001) #49

Closed essess74 closed 1 year ago

essess74 commented 1 year ago

Disabled Location Updates Pause

Allowing the system to pause location updates, at times when the location data is unlikely to change, can improve battery life without sacrificing location data. This is the default behavior. For example, if the user stops for food while using a navigation app, the location manager might pause updates for a period of time. It is possible to disable this behavior, by setting the CLLocationManager#pausesLocationUpdatesAutomatically property to false, but applications are strongly discouraged of doing it.

zippy1978 commented 1 year ago

Addressed by https://github.com/green-code-initiative/ecoCode-mobile/pull/52