The plugin validates, when it initializes, that the device is not compromised, i.e. it is not rooted (Android) or jailbroken (iOS). It also validates that a pin, pattern, or passcode is set to lock the device. If the device is not secured according to this criteria a message is shown to the user and the app exits without showing any information.
Simply add a reference to the plugin and use the CheckSecureDevicePlugin action in the OnApplicationReady event. This ensures that the plugin will be included in the native build.
CheckSecureDevicePlugin
OnApplicationReady
The plugin is localized for the following languages:
If you wish to add a new language fork the GitHub repository, add the language resources, and update the plugin url in the module.
Using version 1.0.4 of plugin.
Reviewed implementation of root detection for Android devices.