react-native-geolocation-service
react-native-geolocation-service copied to clipboard
Mocked variable in response does not become false when fake gps app is turned off
Description
I want to detect that is user user any mock location app or not. When I turn the app on mocked variable in response becomes true and lat long also change accordingly, but then I turn off the mock location app mocked is still true and lat long have fake gps value not my actual coordinates.
I am using Geolocation.getCurrentPosition
to get location
Environment
react-native: 0.63.4 react: 16.3.1 react-native-geolocation-service: 5.2.0
Expected behavior
When mock location app is turned off mocked variable in success response should be false and coordinated should also be user's actual location not fake gps coordinates from mock location app.
Android or iOS or both?
i have same issue mocked variable getting randomly true or false
Same issue here ; always return true. when fake gps app is turned off even after remove the fake gps app
I'm facing the same issue here! There is a solution?
I fixed this by setting enableHighAccuracy: true