@capacitor-community/device-security-detect
The Device Security Detect plugin is designed to provide comprehensive device security detection capabilities for Capacitor-based applications. It aims to detect the device has been rooted (Android) or jailbroken (iOS). By using this plugin, developers can enhance the security of their applications and take appropriate actions based on the detected security status.
Maintainer | GitHub | Active |
---|---|---|
4ooper | 4ooper | yes |
ryaa | ryaa | yes |
Capacitor version | Plugin version |
---|---|
6.x | 6.x |
- iOS
- Android
npm install @capacitor-community/device-security-detect
npx cap sync
isJailBreakOrRooted() => Promise<{ value: boolean; }>
Returns: Promise<{ value: boolean; }>
import { DeviceSecurityDetect } from '@capacitor-community/device-security-detect';
const { value } = await DeviceSecurityDetect.isJailBreakOrRooted();