published expo application is showing me the right mile, Google play store is showing wrong miles #24856
Labels
Bug
Ran Commands
One of our bots successfully processed a command.
Stale
There has been a lack of activity on this issue and it may be closed soon.
Hi All,
React-native-cli: 2.0.1
react-native : 0.57.1
In my React Native application, I am showing miles from the users current location to the destination. I am using geodist for that purpose. Below is my partial code:
`componentDidMount() {
navigator.geolocation.getCurrentPosition(
(position) => {
this.setState({
latitude: position.coords.latitude,
longitude: position.coords.longitude,
error: null,
});
},
(error) => this.setState({ error: error.message }),
{ enableHighAccuracy: true, timeout: 20000, maximumAge: 1000 },
);
var geodist = require('geodist');
var sLat= this.state.latitude;
var sLong = this.state.longitude;
I have the following code in my androidManifest file in my android folder:
`manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.mobileapps.acrapplication">
`
when I publish this app using expo, in expo link, the calculated miles from users current position to destination are shown right on my android phone, but when I publish this app in Google play store then miles are wrong. Do I need too do anything in Google play store or in my code so that Google play store shows the right miles. It seems the current user location in Google play store is wrong.
Any help will be greatly appreciated.
The text was updated successfully, but these errors were encountered: