Does the call stopUpdatingLocation on the CLLocationManager also cause monitoring termination? SignificantLocationChanges

I want to check what happens if I call startMonitoringSignificantLocationChanges on an instance of CLLocationManager, and then call stopUpdatingLocation. The documentation talks about calling this method when my application no longer needs to receive location-related events, but there is also a separate stopMonitoringSignificantLocationChanges method. So I'm not sure if calling stopUpdatingLocation will also stop them.

+1
source share
1 answer

The two are connected, but independent. They start and stop separately.

One common scenario is to call stopUpdatingLocation and startMonitoringSignificantLocationChanges in applicationWillResignActive to increase battery life.

When your application returns to the forefront, a significant change in location is stopped, and location monitoring starts again.

+2
source

Source: https://habr.com/ru/post/979187/


All Articles