cordova-plugin-integrity
v1.0.2
Published
Cordova plugin to detect debugger attachment and optionally abort the process on iOS.
Maintainers
Readme
cordova-plugin-integrity
This Cordova plugin for iOS provides two methods:
isDebuggerAttached-> returns true/false whether a debugger is attached.checkAndAbort-> aborts the process immediately if a debugger is attached.
WARNING: Deliberately aborting/crashing the app can cause App Store rejection and is user-hostile. Use with caution.
Install locally
cordova plugin add /path/to/cordova-plugin-integrity
# or
ionic cordova plugin add /path/to/cordova-plugin-integrityUsage (JS)
Integrity.isDebuggerAttached(function(attached) {
console.log('attached?', attached);
}, function(err) {
console.error(err);
});
// This will abort the app if a debugger is attached
Integrity.checkAndAbort(function(res){}, function(err){ console.error(err); });