Skip to content

Stable version for React Native 0.73 #362

@quangArchiviet

Description

@quangArchiviet

Hi all,

Please let me know which version is the most stable to use for [email protected] and [email protected]?

I am using [email protected] (seems to be the latest), but it is not working properly on Android (on iOS, it is really great).

The problem I am facing is that sometimes it does not get GPS (using watchPosition), or sometimes it is very slow, around 3-5 minutes.

I have tested on several Android devices, and all have this issue.

Below is my code:

   const config = Platform.OS === "ios" ? {
        maximumAge: 2000,
        distanceFilter: 15,
        enableHighAccuracy: true,
        accuracy: "bestForNavigation",
        timeout: 10000,
      } : {
        interval: 1000,
        maximumAge: 5000,
        distanceFilter: 10,
        enableHighAccuracy: false, 
        // accuracy: "best",
        timeout: 15000,
        forceRequestLocation: true,
      };

      Geolocation.watchPosition(
        geoSuccess,
        geoError,
        config
      );

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions