Skip to content

Latest commit

 

History

History
41 lines (25 loc) · 974 Bytes

README.md

File metadata and controls

41 lines (25 loc) · 974 Bytes

Jailbreak/Root Detection Plugin for Apache Cordova

Install

Locally

cordova plugin add https://github.com/jimmyliao/cordova-plugin-device-detection.git

Usage

isRoot

window.plugins.deviceDetection.isRoot(onSuccess, onFail);
  • => successCallback is called with true if the device is Rooted, otherwise false
  • => failureCallback is called if there was an error determining if the device is Rooted

isJailbroken

window.plugins.deviceDetection.isJailBreak(onSuccess, onFail);
  • => successCallback is called with true if the device is Jailbroken, otherwise false
  • => failureCallback is called if there was an error determining if the device is Jailbroken

Platform Support

Android.

iOS is deriving from https://github.com/leecrossley/cordova-plugin-jailbreak-detection.

License

MIT License