A Capacitor plugin for detecting jailbroken iOS devices and rooted Android devices in your mobile applications.
Install the package using npm:
npm install @basecom-gmbh/capacitor-jailbreak-root-detection
npx cap sync
Version Compatibility:
- Use
jailbreak-root-detection@6.0.0
with Capacitor 6.x - Use
jailbreak-root-detection@7.0.0
with Capacitor 7.x
For iOS jailbreak detection to function properly, you must add 'cydia' to your app's query schemes. Open your Info.plist
file and add:
<key>LSApplicationQueriesSchemes</key>
<array>
<string>cydia</string>
</array>
isJailbrokenOrRooted() => Promise<JailbreakRootResult>
Returns: Promise<JailbreakRootResult>
Prop | Type |
---|---|
result |
boolean |