-
Notifications
You must be signed in to change notification settings - Fork 662
Open
Labels
Description
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