-
Notifications
You must be signed in to change notification settings - Fork 253
Open
Labels
questionFurther information is requestedFurther information is requested
Description
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
Labels
questionFurther information is requestedFurther information is requested