Jailbroken/Rooted Device Detector Plugin for Apache Cordova
npm install cordova.plugins.unlocksdetector```
cordova plugin add cordova.plugins.unlocksdetector
This Cordova plugin architecture will add a new object called unlocksDetector to your root automatically when you build.
`js`
unlocksDetector.isJailbroken(successCallback, failureCallback);
- => successCallback is called with true if the device is Jailbroken, otherwise falsefailureCallback
- => is called if there was an error determining if the device is Jailbroken
`js`
unlocksDetector.isRooted(successCallback, failureCallback);
- => successCallback is called with true if the device is Rooted, otherwise falsefailureCallback` is called if there was an error determining if the device is Rooted
- =>
- iOS
- Android