Use this plugin to add an extra layer of security for your app, by detecting if the device running the app is jailbroken.
Based on:
- https://github.com/leecrossley/cordova-plugin-jailbreak-detection (iOS)
- https://github.com/trykovyura/cordova-plugin-root-detection (Android)
- https://github.com/scottyab/rootbeer/blob/master/README.md (Android)
cordova plugin add cordova-plugin-iroot --save
IRoot.isRooted(successCallback, failureCallback);
successCallback(result:boolean:ios|number:android)
is called withtrue/1
if the device is Jailbroken/rooted, otherwisefalse/0
.failureCallback(error:string)
is called if there was an error determining if the device is Jailbroken/rooted.
See comments in WuglyakBolgoink/cordova-plugin-iroot#1
- check versions
MIT License