Skip to content

RCTLocationObserver accuracy reset bug? #17145

Description

@sakarit-zz

https://github.com/facebook/react-native/blob/ed2bfcb35a2756eb700882ab8e21b6b273efa80a/Libraries/Geolocation/RCTLocationObserver.m#L356

Is there a bug here? I don't understand why the desiredAccuracy should be reset to DEFAULT if enableHighAccuracy is enabled and the desiredAccuracy is initially kCLLocationAccuracyBest.

Also I think this should be added to beginLocationUpdatesWithDesiredAccuracy

_locationManager.pausesLocationUpdatesAutomatically = NO;

so location updates would not pause when using watchPosition

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Ran CommandsOne of our bots successfully processed a command.Resolution: LockedThis issue was locked by the bot.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions