You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
permission = await RNLocation.requestPermission({
ios: 'always',
android: {
detail: 'fine',
rationale: {
title: 'We need to access your location',
message: 'Your location is needed to check for stores in your area',
buttonPositive: 'OK',
buttonNegative: 'Cancel',
},
},
});
And I get the location like this
let location;
location = await RNLocation.getLatestLocation({timeout: 2000});
I don't need to subscribe to location updates, just read it once on clicking a button.
When I check Google Maps, the location is perfect.
But on this, the accuracy value stuck around 2000
The text was updated successfully, but these errors were encountered:
We take a very convoluted approach now. The user is shown whatever address
(based on the coordinates) is returned by the maps api. Then the user has
the choice of editing that address. Again the maps api is used to generate
the coordinates based on the updated address.
I seem to constantly get terrible accuracy. Even if I ask for fine, I get only coarse.
The physical device running Android 10 . Connected to computer via USB debugging. React Native version is 0.6.4.
The initial configuration is :
I get permissions like this:
And I get the location like this
I don't need to subscribe to location updates, just read it once on clicking a button.
When I check Google Maps, the location is perfect.
But on this, the accuracy value stuck around 2000
The text was updated successfully, but these errors were encountered: