I am working on a web application that allows users to enter the application only if they are in certain regions. I called locationManager startUpdatingLocation at the beginning of my application to get the user's location and enable / disable login.
As soon as the user logged in, I called
[locationManager stopUpdatingLocation]; [locationManager startMonitoringSignificantLocationChanges];
and registers the user when the updated location is outside the region. Will using the two methods be a collision anyway? (I am testing the code on a simulator, so the location is always the same).
Note. I do not use didEnterRegion or didExitRegion , because everything is processed using existing Javascript code. I send only the current location of the user.
source share