react-native-geolocation-service icon indicating copy to clipboard operation
react-native-geolocation-service copied to clipboard

Mocked variable in response does not become false when fake gps app is turned off

Open m-tbox opened this issue 3 years ago • 7 comments

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.

m-tbox avatar Apr 01 '21 09:04 m-tbox

Android or iOS or both?

draperunner avatar Aug 31 '21 10:08 draperunner

i have same issue mocked variable getting randomly true or false

erennyuksell avatar Aug 16 '23 15:08 erennyuksell

Same issue here ; always return true. when fake gps app is turned off even after remove the fake gps app

DevHisham avatar Dec 17 '23 08:12 DevHisham

I'm facing the same issue here! There is a solution?

Falkaniere avatar Jan 08 '24 17:01 Falkaniere

I fixed this by setting enableHighAccuracy: true

BeezyWorks avatar Mar 27 '24 12:03 BeezyWorks