Jailbreak Root detection plugin for capacitor.
Install the package.
npm install jailbreak-root-detection
npx cap sync
Add 'cydia' to the query schema of your app, otherwise the jailbreak detection will not work.
<key>LSApplicationQueriesSchemes</key>
<array>
<string>cydia</string>
</array>
isJailbrokenOrRooted() => any
Returns: any
Prop | Type |
---|---|
result |
boolean |