Skip to content

iOS geolocation watchPosition Incorrect #12967

@himanchau

Description

@himanchau

Description

Watch location of user on iOS seems to not be using GPS. The accuracy never goes below 65 and the speed is negative, which seems like that the GPS is not kicking in. It works just fine for Android. Also, navigator.geolocation works just fine in the browser with accurate speed and accuracy. (https://codepen.io/himanshu/full/bqoEQN/)

Reproduction

Reproduced in Expo. (https://sketch.expo.io/S15lAdDsx)

Solution

React native needs to respect the enableHighAccuracy and distanceFilter flags and return the proper accurate location.

Additional Information

  • React Native version: 0.42
  • Platform: iOS
  • Operating System: Mac & Test on Device
  • Dev tools: xCode

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions