Repository navigation
Description
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;
var dist = geodist({lat: sLat, lon: sLong}, {lat: item.LatL, lon: item.Long2}, 'mi') `
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">
<uses-permission android:name="android.Manifest.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>
<application
android:name=".MainApplication"
android:label="@string/app_name"
android:icon="@mipmap/ic_launcher"
android:allowBackup="false"
android:theme="@style/AppTheme">
<activity
android:name=".MainActivity"
android:label="@string/app_name"
android:configChanges="keyboard|keyboardHidden|orientation|screenSize"
android:windowSoftInputMode="adjustResize">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name="com.facebook.react.devsupport.DevSettingsActivity" />
</application>
`
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.
Activity
react-native-bot commentedon May 14, 2019
Thanks for submitting your issue. Can you take another look at your description and make sure the issue template has been filled in its entirety?
👉 Click here if you want to take another look at the Bug Report issue template.
anjali100 commentedon May 15, 2019
yes, everything looks good.
stale commentedon Aug 13, 2019
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as a "Discussion" or add it to the "Backlog" and I will leave it open. Thank you for your contributions.
stale commentedon Aug 20, 2019
Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information.