Skip to content

Capacitor plugin to detect VPN connections on Android and iOS.

Notifications You must be signed in to change notification settings

aljadan/capacitor-vpn-detector

Repository files navigation

capacitor-vpn-detector

Capacitor plugin to detect VPN connections on Android and iOS.

Install

npm install capacitor-vpn-detector
npx cap sync

API

isVpnActive()

isVpnActive() => Promise<{ value: boolean; }>

Returns: Promise<{ value: boolean; }>