I'm trying to use Geofence
module of Location Kit from HMSCore SDK in React Native
, since it seems it's not working I wanted to test it by mocking the location. Following the docs I went to Developer Options > Select mock location app
, but it doesn't let me select my application. Is there another way to do it? Any guide to understand how location services work in general for React Native
? Docs are not very clear to me and I couldn't find any examples.
Asked
Active
Viewed 186 times
2

zhangxaochen
- 32,744
- 15
- 77
- 108

kaskeeeee
- 61
- 4
1 Answers
0
You also need to apply for the mock location permission in the AndroidManifest.xml file.
<uses-permission
android:name="android.permission.ACCESS_MOCK_LOCATION"
tools:ignore="MockLocation,ProtectedPermissions" />
For more details, you could refer to this docs.

zhangxaochen
- 32,744
- 15
- 77
- 108