UNPKG

cordova-plugin-mobiledevicesecurity

Version:

Cordova plugin to guard against some of Hacking / Tampering attacks. Also provides device information like state of Jailbrake / Root.

25 lines (16 loc) 689 B
var exec = require('cordova/exec'); exports.IsDebugBuild = function (success, error) { exec(success, error, 'IsDebug', 'IsDebugBuild'); }; exports.IsJailBreakDevice = function (success, error) { exec(success, error, 'MobileDeviceSecurity', 'IsJailBreakDevice'); }; exports.IsDebuggerConnected = function (success, error) { exec(success, error, 'MobileDeviceSecurity', 'IsDebuggerConnected'); }; exports.IsDeviceAnEmulator = function (success, error) { exec(success, error, 'MobileDeviceSecurity', 'IsDeviceAnEmulator'); }; exports.IsAnyHackingToolPresent = function (success, error) { exec(success, error, 'MobileDeviceSecurity', 'IsAnyHackingToolPresent'); };