0.0.1 • Published 1 year ago

capacitor-v3-plugin-mock-location-checker v0.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

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; }[]; }>
ParamType
options{ whiteList: string[]; }

Returns: Promise<{ mockDetected: boolean; mocks?: { name: string; package: string; }[]; }>