nbrignol opened a new issue #244:
URL: https://github.com/apache/cordova-plugin-geolocation/issues/244


   # Bug Report
   
   ## Problem
   
   On iOS, start requesting location updates. You reveive locations updates. Ok.
   Put the app in background and make the phone in sleep mode (press the right 
button).
   The app receive still some updates then an error is triggered. That is 
normal.
   
   ### What is expected to happen?
   
   When I wake up the phone and the app in foreground, I expect to be notified 
again with locations updates.
   
   ### What does actually happen?
   
   When you restart the app, no more updates.
   In the error delegate, the plugin call "stopUpdatingLocation". I think there 
is no reason to do that.
   
   ## Information
   
   ### Command or Code
   
   In locationManager:didFailWithError: 
   This code should be removed
   `if (error.code != kCLErrorLocationUnknown) {
         [self.locationManager stopUpdatingLocation];
         __locationStarted = NO;
       }`
   
   
   
   ### Environment, Platform, Device
   Tested on iPhone 13 mini iOS 15.1.1
   
   
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to