Agontuk / react-native-geolocation-service

React native geolocation service for iOS and android
https://www.npmjs.com/package/react-native-geolocation-service
MIT License
1.61k stars 291 forks source link

Currently issue is when we open google map & start navigate on that time we can't got location update. #410

Open shivamIqlance opened 1 year ago

shivamIqlance commented 1 year ago

Environment

Run npx react-native info in your terminal and copy the results here.

Platforms

Only in Android

Versions

Please add the used versions/branches

Description

Please Fix the compatibility problem with other geolocation services which use the newest version. Application working fine in background mode. But when the driver opens the Google map and starts tracking. Once we start tracking on google map after we can't get the current location , app is not giving us the current location (which is running in the background) so we are unable to track the location.

The application after the new update prevents background location service when the driver is on Google Maps starting tracking.

Expected Results

Need get current location on time when user use google navigation service.

aqil07 commented 1 year ago

@shivamIqlance , could you please provide more details with regard to this bug? For example, which device(s) does this occur on? I have not experienced the issue you have described above or anything of the sort, when using this library in my app. If you could potentially also allow a fork of your project, it can be run locally for the bug to be reproduced and a potential fix applied/suggested.

Thanks A

zkteco-home commented 11 months ago

I have same issue

if i dont use react-native-maps,Geolocation.getCurrentPosition works fine,once i use react-native-maps,raise the following error: image

Android Env ext { buildToolsVersion = "33.0.0" minSdkVersion = 21 compileSdkVersion = 33 targetSdkVersion = 33

    // We use NDK 23 which has both M1 support and is the side-by-side NDK version from AGP.
    ndkVersion = "23.1.7779620"
}

"react": "18.2.0", "react-native": "0.72.6", "react-native-maps":"^1.8.0" "react-native-geolocation-service": "^5.3.1"

zkteco-home commented 11 months ago

please help me fix it,i tried many times and found bcz of react-native-maps compatible issue