0.0.16 • Published 10 months ago

@jewel998/mock-location v0.0.16

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

@jewel998/mock-location

Detect Mock Location in an Capacitor Application

Install

npm install @jewel998/mock-location
npx cap sync

Add this to your app Manifest.xml

<uses-permission android:name="android.permission.QUERY_ALL_PACKAGES"/>

or,

<uses-permission android:name="android.permission.QUERY_ALL_PACKAGES"
    tools:ignore="QueryAllPackagesPermission" />

API

isMockLocation(...)

isMockLocation(options: { whitelist: string[]; }) => Promise<{ isEnabled: boolean; packages?: string[]; }>
ParamType
options{ whitelist: string[]; }

Returns: Promise<{ isEnabled: boolean; packages?: string[]; }>


isDevOptionsEnabled()

isDevOptionsEnabled() => Promise<{ isEnabled: boolean; }>

Returns: Promise<{ isEnabled: boolean; }>


0.0.16

10 months ago

0.0.15

11 months ago

0.0.14

11 months ago

0.0.13

11 months ago

0.0.12

11 months ago

0.0.11

11 months ago

0.0.10

11 months ago

0.0.9

11 months ago

0.0.8

11 months ago

0.0.7

11 months ago

0.0.6

11 months ago

0.0.5

11 months ago

0.0.4

11 months ago

0.0.3

11 months ago

0.0.2

11 months ago

0.0.1

11 months ago