Skip to content

[iOS] Location update are disabled after one kCLErrorLocationUnknown #244

@nbrignol

Description

@nbrignol

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions