I am currently in the process of developing a mobile application using ionic2. One of the requirements for my app is to check if an android device has been rooted. I conducted some research online and came across a plugin called this plugin known as cordova-plugin-root-detection
, however, it doesn't seem to be working for me.
Following the instructions provided in the link above, I added this plugin to my project using the following command:
cordova plugin add https://github.com/trykovyura/cordova-plugin-root-detection.git
Even after adding the plugin, I encountered issues while trying to import it, receiving an error message indicating that no module was present. In an attempt to resolve this, I force quit my project, ran npm install
, and reopened my project, but unfortunately, the error persisted.
rootDetection.isDeviceRooted(successCallback, errorCallback);
Despite calling this function, it seems that the module is still not present.
If anyone has any references or suggestions regarding this plugin, your input would be greatly appreciated.