capacitor-vpn-detector
v0.0.6
Published
Capacitor plugin to detect VPN connections on Android and iOS.
Maintainers
Readme
capacitor-vpn-detector
Capacitor plugin to detect VPN connections on Android and iOS.
Install
npm install capacitor-vpn-detector
npx cap syncAPI
isVpnActive()
isVpnActive() => Promise<{ value: boolean; }>Check if VPN is currently active on the device
Returns: Promise<{ value: boolean; }>
Usage
import { VpnDetector } from 'capacitor-vpn-detector';
const checkVpn = async () => {
const result = await VpnDetector.isVpnActive();
console.log('VPN is active:', result.value);
};