capacitor-v3-plugin-mock-location-checker
v0.0.1
Published
This plugin detects mock locations in Android
Downloads
3
Maintainers
Readme
capacitor-v3-plugin-mock-location-checker
This plugin detects mock locations in Android
This plugin get mock location in Android api < 18 AND api >= 18
Supported Platforms
- Android
Install
npm install capacitor-v3-plugin-mock-location-checker
npx cap sync
Add permissions
In android AndroidManifest.xml please add:
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
API
check(...)
check(options?: { whiteList: string[]; } | undefined) => Promise<{ mockDetected: boolean; mocks?: { name: string; package: string; }[]; }>
| Param | Type |
| ------------- | ------------------------------------- |
| options
| { whiteList: string[]; } |
Returns: Promise<{ mockDetected: boolean; mocks?: { name: string; package: string; }[]; }>