Configuring Appdome Security Alerts for Cordova Apps

This Knowledge Base article reviews in detail how users can Configuring Appdome Security Alerts for Cordova Apps they Build on Appdome.

Appdome Security Alerts, DEV-Events™,  is part of the Appdome Mobile Security Suite.

We hope you find it useful and enjoy using Appdome!

Prerequisites for Configuring Appdome Security Alerts for Cordova Apps

Before enabling DEV-Eventsfollow these steps below for iOS and Android apps to handle the incoming security events in your application:

  • Create a Cordova project
  • Add the project your app platform: Android and/or iOS
  • Add Cordova-plugin-broadcaster – Cordova Plugin which allows messages exchange between javascript (Android LocalBroadcastManager and iOS NSNotificationCenter) and native (and vice-versa).

Download the code – Cordova-code-Android

window.broadcaster.addEventListener( "BlockedClipboardEvent", function(userInfo) {
       console.log( "BlockedClipboardEvent received! userInfo: " + JSON.stringify(userInfo) );

       var clipboardBlocked = userInfo.blocked;
       var action = userInfo.action;
       var timeStamp = userInfo.timestamp;
       var deviceID = userInfo.deviceID;
       var deviceModel = userInfo.deviceModel;
       var osVersion = userInfo.osVersion;
       var kernelInfo = userInfo.kernelInfo;
       var fusedAppToken = userInfo.fusedAppToken;
       var deviceManufacturer = userInfo.deviceManufacturer;
       var carrierPlmn = userInfo.carrierPlmn;
       var deviceBrand = userInfo.deviceBrand;
       var deviceBoard = userInfo.deviceBoard;
       var buildHost = userInfo.buildHost;
       var buildUser = userInfo.buildUser;
       var sdkVersion = userInfo.sdkVersion;

       console.log(" clipboardBlocked: " + clipboardBlocked + " timeStamp: " + timeStamp + " deviceID: " + deviceID + " deviceModel: " + deviceModel + " osVersion: " + osVersion + " kernelInfo: " + kernelInfo + " fusedAppToken: " + fusedAppToken + " deviceManufacturer: " + deviceManufacturer + " carrierPlmn: " + carrierPlmn + " deviceBrand: " + deviceBrand + " deviceBoard: " + deviceBoard + " buildHost: " + buildHost + " buildUser: " + buildUser + " sdkVersion: " + sdkVersion);

//add your code here
} );

window.broadcaster.addEventListener( "BlockedKeyboardEvent", function(userInfo) {
       console.log( "BlockedKeyboardEvent received! userInfo: " + JSON.stringify(userInfo) );

       var defaultMessage = userInfo.defaultMessage;
       var keyboardBlocked = userInfo.blocked;
       var keyboard = userInfo.keyboard;
       var timeStamp = userInfo.timestamp;
       var deviceID = userInfo.deviceID;
       var deviceModel = userInfo.deviceModel;
       var osVersion = userInfo.osVersion;
       var kernelInfo = userInfo.kernelInfo;
       var fusedAppToken = userInfo.fusedAppToken;
       var deviceManufacturer = userInfo.deviceManufacturer;
       var carrierPlmn = userInfo.carrierPlmn;
       var deviceBrand = userInfo.deviceBrand;
       var deviceBoard = userInfo.deviceBoard;
       var buildHost = userInfo.buildHost;
       var buildUser = userInfo.buildUser;
       var sdkVersion = userInfo.sdkVersion;

       console.log(" keyboardBlocked: " + keyboardBlocked + " timeStamp: " + timeStamp + " deviceID: " + deviceID + " deviceModel: " + deviceModel + " osVersion: " + osVersion + " kernelInfo: " + kernelInfo + " fusedAppToken: " + fusedAppToken + " deviceManufacturer: " + deviceManufacturer + " carrierPlmn: " + carrierPlmn + " deviceBrand: " + deviceBrand + " deviceBoard: " + deviceBoard + " buildHost: " + buildHost + " buildUser: " + buildUser + " sdkVersion: " + sdkVersion););

//add your code here
} );

window.broadcaster.addEventListener( "SslCertificateValidationFailed", function(userInfo) {
       console.log( "SslCertificateValidationFailed received! userInfo: " + JSON.stringify(userInfo) );

       var defaultMessage = userInfo.defaultMessage;
       var deveventDetailedErrorMessage = userInfo.DeveventDetailedErrorMessage ;
       var host = userInfo.host ;
       var certificateSHA1 = userInfo.certificateSHA1 ;
       var certificateCN = userInfo.certificateCN ;
       var timeStamp = userInfo.timestamp;
       var deviceID = userInfo.deviceID;
       var deviceModel = userInfo.deviceModel;
       var osVersion = userInfo.osVersion;
       var kernelInfo = userInfo.kernelInfo;
       var fusedAppToken = userInfo.fusedAppToken;
       var deviceManufacturer = userInfo.deviceManufacturer;
       var carrierPlmn = userInfo.carrierPlmn;
       var deviceBrand = userInfo.deviceBrand;
       var deviceBoard = userInfo.deviceBoard;
       var buildHost = userInfo.buildHost;
       var buildUser = userInfo.buildUser;
       var sdkVersion = userInfo.sdkVersion;

       console.log(" defaultMessage: " + defaultMessage + " deveventDetailedErrorMessage: " + deveventDetailedErrorMessage + " host: " + host + " certificateSHA1: " + certificateSHA1 + " certificateCN: " + certificateCN + " timeStamp: " + timeStamp + " deviceID: " + deviceID + " deviceModel: " + deviceModel + " osVersion: " + osVersion + " kernelInfo: " + kernelInfo + " fusedAppToken: " + fusedAppToken + " deviceManufacturer: " + deviceManufacturer + " carrierPlmn: " + carrierPlmn + " deviceBrand: " + deviceBrand + " deviceBoard: " + deviceBoard + " buildHost: " + buildHost + " buildUser: " + buildUser + " sdkVersion: " + sdkVersion););

//add your code here
} );

window.broadcaster.addEventListener( "SslServerCertificatePinningFailed", function(userInfo) {
       console.log( "SslServerCertificatePinningFailed received! userInfo: " + JSON.stringify(userInfo) );

       var defaultMessage = userInfo.defaultMessage;
       var deveventDetailedErrorMessage = userInfo.DeveventDetailedErrorMessage ;
       var host = userInfo.host ;
       var certificateSHA1 = userInfo.certificateSHA1 ;
       var certificateCN = userInfo.certificateCN ;
       var timeStamp = userInfo.timestamp;
       var deviceID = userInfo.deviceID;
       var deviceModel = userInfo.deviceModel;
       var osVersion = userInfo.osVersion;
       var kernelInfo = userInfo.kernelInfo;
       var fusedAppToken = userInfo.fusedAppToken;
       var deviceManufacturer = userInfo.deviceManufacturer;
       var carrierPlmn = userInfo.carrierPlmn;
       var deviceBrand = userInfo.deviceBrand;
       var deviceBoard = userInfo.deviceBoard;
       var buildHost = userInfo.buildHost;
       var buildUser = userInfo.buildUser;
       var sdkVersion = userInfo.sdkVersion;

       console.log(" defaultMessage: " + defaultMessage + " deveventDetailedErrorMessage: " + deveventDetailedErrorMessage + " host: " + host + " certificateSHA1: " + certificateSHA1 + " certificateCN: " + certificateCN + " timeStamp: " + timeStamp + " deviceID: " + deviceID + " deviceModel: " + deviceModel + " osVersion: " + osVersion + " kernelInfo: " + kernelInfo + " fusedAppToken: " + fusedAppToken + " deviceManufacturer: " + deviceManufacturer + " carrierPlmn: " + carrierPlmn + " deviceBrand: " + deviceBrand + " deviceBoard: " + deviceBoard + " buildHost: " + buildHost + " buildUser: " + buildUser + " sdkVersion: " + sdkVersion););

//add your code here
} );

window.broadcaster.addEventListener( "SslIncompatibleCipher", function(userInfo) {
       console.log( "SslIncompatibleCipher received! userInfo: " + JSON.stringify(userInfo) );

       var defaultMessage = userInfo.defaultMessage;
       var host = userInfo.host ;
       var IncompatibleCipherId = userInfo.IncompatibleCipherId ;
       var timeStamp = userInfo.timestamp;
       var deviceID = userInfo.deviceID;
       var deviceModel = userInfo.deviceModel;
       var osVersion = userInfo.osVersion;
       var kernelInfo = userInfo.kernelInfo;
       var fusedAppToken = userInfo.fusedAppToken;
       var deviceManufacturer = userInfo.deviceManufacturer;
       var carrierPlmn = userInfo.carrierPlmn;
       var deviceBrand = userInfo.deviceBrand;
       var deviceBoard = userInfo.deviceBoard;
       var buildHost = userInfo.buildHost;
       var buildUser = userInfo.buildUser;
       var sdkVersion = userInfo.sdkVersion;

       console.log(" defaultMessage: " + defaultMessage + " deveventDetailedErrorMessage: " + deveventDetailedErrorMessage + " host: " + host + " IncompatibleCipherId: " + IncompatibleCipherId + " timeStamp: " + timeStamp + " deviceID: " + deviceID + " deviceModel: " + deviceModel + " osVersion: " + osVersion + " kernelInfo: " + kernelInfo + " fusedAppToken: " + fusedAppToken + " deviceManufacturer: " + deviceManufacturer + " carrierPlmn: " + carrierPlmn + " deviceBrand: " + deviceBrand + " deviceBoard: " + deviceBoard + " buildHost: " + buildHost + " buildUser: " + buildUser + " sdkVersion: " + sdkVersion););

//add your code here
} );

window.broadcaster.addEventListener( "SslIncompatibleVersion", function(userInfo) {
       console.log( "SslIncompatibleVersion received! userInfo: " + JSON.stringify(userInfo) );

       var defaultMessage = userInfo.defaultMessage;
       var host = userInfo.host ;
       var IncompatibleSslVersion = userInfo.IncompatibleSslVersion ;
       var timeStamp = userInfo.timestamp;
       var deviceID = userInfo.deviceID;
       var deviceModel = userInfo.deviceModel;
       var osVersion = userInfo.osVersion;
       var kernelInfo = userInfo.kernelInfo;
       var fusedAppToken = userInfo.fusedAppToken;
       var deviceManufacturer = userInfo.deviceManufacturer;
       var carrierPlmn = userInfo.carrierPlmn;
       var deviceBrand = userInfo.deviceBrand;
       var deviceBoard = userInfo.deviceBoard;
       var buildHost = userInfo.buildHost;
       var buildUser = userInfo.buildUser;
       var sdkVersion = userInfo.sdkVersion;

       console.log(" defaultMessage: " + defaultMessage + " deveventDetailedErrorMessage: " + deveventDetailedErrorMessage + " host: " + host + " IncompatibleSslVersion: " + IncompatibleSslVersion + " timeStamp: " + timeStamp + " deviceID: " + deviceID + " deviceModel: " + deviceModel + " osVersion: " + osVersion + " kernelInfo: " + kernelInfo + " fusedAppToken: " + fusedAppToken + " deviceManufacturer: " + deviceManufacturer + " carrierPlmn: " + carrierPlmn + " deviceBrand: " + deviceBrand + " deviceBoard: " + deviceBoard + " buildHost: " + buildHost + " buildUser: " + buildUser + " sdkVersion: " + sdkVersion););

//add your code here
} );

window.broadcaster.addEventListener( "SslInvalidCertificateChain", function(userInfo) {
       console.log( "SslInvalidCertificateChain received! userInfo: " + JSON.stringify(userInfo) );

       var defaultMessage = userInfo.defaultMessage;
       var deveventDetailedErrorMessage = userInfo.DeveventDetailedErrorMessage ;
       var host = userInfo.host ;
       var certificateSHA1 = userInfo.certificateSHA1 ;
       var certificateCN = userInfo.certificateCN ;
       var timeStamp = userInfo.timestamp;
       var deviceID = userInfo.deviceID;
       var deviceModel = userInfo.deviceModel;
       var osVersion = userInfo.osVersion;
       var kernelInfo = userInfo.kernelInfo;
       var fusedAppToken = userInfo.fusedAppToken;
       var deviceManufacturer = userInfo.deviceManufacturer;
       var carrierPlmn = userInfo.carrierPlmn;
       var deviceBrand = userInfo.deviceBrand;
       var deviceBoard = userInfo.deviceBoard;
       var buildHost = userInfo.buildHost;
       var buildUser = userInfo.buildUser;
       var sdkVersion = userInfo.sdkVersion;

       console.log(" defaultMessage: " + defaultMessage + " deveventDetailedErrorMessage: " + deveventDetailedErrorMessage + " host: " + host + " certificateSHA1: " + certificateSHA1 + " certificateCN: " + certificateCN + " timeStamp: " + timeStamp + " deviceID: " + deviceID + " deviceModel: " + deviceModel + " osVersion: " + osVersion + " kernelInfo: " + kernelInfo + " fusedAppToken: " + fusedAppToken + " deviceManufacturer: " + deviceManufacturer + " carrierPlmn: " + carrierPlmn + " deviceBrand: " + deviceBrand + " deviceBoard: " + deviceBoard + " buildHost: " + buildHost + " buildUser: " + buildUser + " sdkVersion: " + sdkVersion););

//add your code here
} );

window.broadcaster.addEventListener( "BlockedScreenCaptureEvent", function(userInfo) {
       console.log( "BlockedScreenCaptureEvent received! userInfo: " + JSON.stringify(userInfo) );

       var defaultMessage = userInfo.defaultMessage;
       var context = userInfo.context;
       var timeStamp = userInfo.timestamp;
       var deviceID = userInfo.deviceID;
       var deviceModel = userInfo.deviceModel;
       var osVersion = userInfo.osVersion;
       var kernelInfo = userInfo.kernelInfo;
       var fusedAppToken = userInfo.fusedAppToken;
       var deviceManufacturer = userInfo.deviceManufacturer;
       var carrierPlmn = userInfo.carrierPlmn;
       var deviceBrand = userInfo.deviceBrand;
       var deviceBoard = userInfo.deviceBoard;
       var buildHost = userInfo.buildHost;
       var buildUser = userInfo.buildUser;
       var sdkVersion = userInfo.sdkVersion;

       console.log(" context: " + context + " timeStamp: " + timeStamp + " deviceID: " + deviceID + " deviceModel: " + deviceModel + " osVersion: " + osVersion + " kernelInfo: " + kernelInfo + " fusedAppToken: " + fusedAppToken + " deviceManufacturer: " + deviceManufacturer + " carrierPlmn: " + carrierPlmn + " deviceBrand: " + deviceBrand + " deviceBoard: " + deviceBoard + " buildHost: " + buildHost + " buildUser: " + buildUser + " sdkVersion: " + sdkVersion););

//add your code here
} );

window.broadcaster.addEventListener( "UrlWhitelistFailed", function(userInfo) {
       console.log( "UrlWhitelistFailed received! userInfo: " + JSON.stringify(userInfo) );

       var defaultMessage = userInfo.defaultMessage;
       var timeStamp = userInfo.timestamp;
       var host = userInfo.host;
       var deviceID = userInfo.deviceID;
       var deviceModel = userInfo.deviceModel;
       var osVersion = userInfo.osVersion;
       var kernelInfo = userInfo.kernelInfo;
       var fusedAppToken = userInfo.fusedAppToken;
       var deviceManufacturer = userInfo.deviceManufacturer;
       var carrierPlmn = userInfo.carrierPlmn;
       var deviceBrand = userInfo.deviceBrand;
       var deviceBoard = userInfo.deviceBoard;
       var buildHost = userInfo.buildHost;
       var buildUser = userInfo.buildUser;
       var sdkVersion = userInfo.sdkVersion;

       console.log(" defaultMessage: " + defaultMessage + " timeStamp: " + timeStamp + " host: " + host + " deviceID: " + deviceID + " deviceModel: " + deviceModel + " osVersion: " + osVersion + " kernelInfo: " + kernelInfo + " fusedAppToken: " + fusedAppToken + " deviceManufacturer: " + deviceManufacturer + " carrierPlmn: " + carrierPlmn + " deviceBrand: " + deviceBrand + " deviceBoard: " + deviceBoard + " buildHost: " + buildHost + " buildUser: " + buildUser + " sdkVersion: " + sdkVersion););

//add your code here
} );

window.broadcaster.addEventListener( "SslInvalidMinRSASignature", function(userInfo) {
       console.log( "SslInvalidMinRSASignature received! userInfo: " + JSON.stringify(userInfo) );

       var defaultMessage = userInfo.defaultMessage;
       var deveventDetailedErrorMessage = userInfo.DeveventDetailedErrorMessage ;
       var host = userInfo.host ;
       var certificateSHA1 = userInfo.certificateSHA1 ;
       var certificateCN = userInfo.certificateCN ;
       var timeStamp = userInfo.timestamp;
       var deviceID = userInfo.deviceID;
       var deviceModel = userInfo.deviceModel;
       var osVersion = userInfo.osVersion;
       var kernelInfo = userInfo.kernelInfo;
       var fusedAppToken = userInfo.fusedAppToken;
       var deviceManufacturer = userInfo.deviceManufacturer;
       var carrierPlmn = userInfo.carrierPlmn;
       var deviceBrand = userInfo.deviceBrand;
       var deviceBoard = userInfo.deviceBoard;
       var buildHost = userInfo.buildHost;
       var buildUser = userInfo.buildUser;
       var sdkVersion = userInfo.sdkVersion;

       console.log(" defaultMessage: " + defaultMessage + " deveventDetailedErrorMessage: " + deveventDetailedErrorMessage + " host: " + host + " certificateSHA1: " + certificateSHA1 + " certificateCN: " + certificateCN + " timeStamp: " + timeStamp + " deviceID: " + deviceID + " deviceModel: " + deviceModel + " osVersion: " + osVersion + " kernelInfo: " + kernelInfo + " fusedAppToken: " + fusedAppToken + " deviceManufacturer: " + deviceManufacturer + " carrierPlmn: " + carrierPlmn + " deviceBrand: " + deviceBrand + " deviceBoard: " + deviceBoard + " buildHost: " + buildHost + " buildUser: " + buildUser + " sdkVersion: " + sdkVersion););

//add your code here
} );

window.broadcaster.addEventListener( "SslInvalidMinECCSignature", function(userInfo) {
       console.log( "SslInvalidMinECCSignature received! userInfo: " + JSON.stringify(userInfo) );

       var defaultMessage = userInfo.defaultMessage;
       var deveventDetailedErrorMessage = userInfo.DeveventDetailedErrorMessage ;
       var host = userInfo.host ;
       var certificateSHA1 = userInfo.certificateSHA1 ;
       var certificateCN = userInfo.certificateCN ;
       var timeStamp = userInfo.timestamp;
       var deviceID = userInfo.deviceID;
       var deviceModel = userInfo.deviceModel;
       var osVersion = userInfo.osVersion;
       var kernelInfo = userInfo.kernelInfo;
       var fusedAppToken = userInfo.fusedAppToken;
       var deviceManufacturer = userInfo.deviceManufacturer;
       var carrierPlmn = userInfo.carrierPlmn;
       var deviceBrand = userInfo.deviceBrand;
       var deviceBoard = userInfo.deviceBoard;
       var buildHost = userInfo.buildHost;
       var buildUser = userInfo.buildUser;
       var sdkVersion = userInfo.sdkVersion;

       console.log(" defaultMessage: " + defaultMessage + " deveventDetailedErrorMessage: " + deveventDetailedErrorMessage + " host: " + host + " certificateSHA1: " + certificateSHA1 + " certificateCN: " + certificateCN + " timeStamp: " + timeStamp + " deviceID: " + deviceID + " deviceModel: " + deviceModel + " osVersion: " + osVersion + " kernelInfo: " + kernelInfo + " fusedAppToken: " + fusedAppToken + " deviceManufacturer: " + deviceManufacturer + " carrierPlmn: " + carrierPlmn + " deviceBrand: " + deviceBrand + " deviceBoard: " + deviceBoard + " buildHost: " + buildHost + " buildUser: " + buildUser + " sdkVersion: " + sdkVersion););

//add your code here
} );

window.broadcaster.addEventListener( "SslInvalidMinDigest", function(userInfo) {
       console.log( "SslInvalidMinDigest received! userInfo: " + JSON.stringify(userInfo) );

       var defaultMessage = userInfo.defaultMessage;
       var deveventDetailedErrorMessage = userInfo.DeveventDetailedErrorMessage ;
       var host = userInfo.host ;
       var certificateSHA1 = userInfo.certificateSHA1 ;
       var certificateCN = userInfo.certificateCN ;
       var timeStamp = userInfo.timestamp;
       var deviceID = userInfo.deviceID;
       var deviceModel = userInfo.deviceModel;
       var osVersion = userInfo.osVersion;
       var kernelInfo = userInfo.kernelInfo;
       var fusedAppToken = userInfo.fusedAppToken;
       var deviceManufacturer = userInfo.deviceManufacturer;
       var carrierPlmn = userInfo.carrierPlmn;
       var deviceBrand = userInfo.deviceBrand;
       var deviceBoard = userInfo.deviceBoard;
       var buildHost = userInfo.buildHost;
       var buildUser = userInfo.buildUser;
       var sdkVersion = userInfo.sdkVersion;

       console.log(" defaultMessage: " + defaultMessage + " deveventDetailedErrorMessage: " + deveventDetailedErrorMessage + " host: " + host + " certificateSHA1: " + certificateSHA1 + " certificateCN: " + certificateCN + " timeStamp: " + timeStamp + " deviceID: " + deviceID + " deviceModel: " + deviceModel + " osVersion: " + osVersion + " kernelInfo: " + kernelInfo + " fusedAppToken: " + fusedAppToken + " deviceManufacturer: " + deviceManufacturer + " carrierPlmn: " + carrierPlmn + " deviceBrand: " + deviceBrand + " deviceBoard: " + deviceBoard + " buildHost: " + buildHost + " buildUser: " + buildUser + " sdkVersion: " + sdkVersion););

//add your code here
} );

window.broadcaster.addEventListener( "RootedDevice", function(userInfo) {
         console.log( "RootedDevice received! userInfo: " + JSON.stringify(userInfo)  );

       var defaultMessage = userInfo.defaultMessage;
       var internalError = userInfo.internalError;
       var timeStamp = userInfo.timestamp;
       var deviceID = userInfo.deviceID;
       var deviceModel = userInfo.deviceModel;
       var osVersion = userInfo.osVersion;
       var kernelInfo = userInfo.kernelInfo;
       var fusedAppToken = userInfo.fusedAppToken;
       var deviceManufacturer = userInfo.deviceManufacturer;
       var carrierPlmn = userInfo.carrierPlmn;
       var deviceBrand = userInfo.deviceBrand;
       var deviceBoard = userInfo.deviceBoard;
       var buildHost = userInfo.buildHost;
       var buildUser = userInfo.buildUser;
       var sdkVersion = userInfo.sdkVersion;

         console.log(" timeStamp: " + timeStamp + " internalError: " + internalError + " deviceID: " + deviceID + " deviceModel: " + deviceModel + " osVersion: " + osVersion + " kernelInfo: " + kernelInfo + " fusedAppToken: " + fusedAppToken + " deviceManufacturer: " + deviceManufacturer + " carrierPlmn: " + carrierPlmn + " deviceBrand: " + deviceBrand + " deviceBoard: " + deviceBoard + " buildHost: " + buildHost + " buildUser: " + buildUser + " sdkVersion: " + sdkVersion););
 
        //add your code here
     } );
     
window.broadcaster.addEventListener( "UnknownSourcesEnabled", function(userInfo) {
         console.log( "UnknownSourcesEnabled received! userInfo: " + JSON.stringify(userInfo)  );

       var defaultMessage = userInfo.defaultMessage;
       var timeStamp = userInfo.timestamp;
       var deviceID = userInfo.deviceID;
       var deviceModel = userInfo.deviceModel;
       var osVersion = userInfo.osVersion;
       var kernelInfo = userInfo.kernelInfo;
       var fusedAppToken = userInfo.fusedAppToken;
       var deviceManufacturer = userInfo.deviceManufacturer;
       var carrierPlmn = userInfo.carrierPlmn;
       var deviceBrand = userInfo.deviceBrand;
       var deviceBoard = userInfo.deviceBoard;
       var buildHost = userInfo.buildHost;
       var buildUser = userInfo.buildUser;
       var sdkVersion = userInfo.sdkVersion;

         console.log(" timeStamp: " + timeStamp + " deviceID: " + deviceID + " deviceModel: " + deviceModel + " osVersion: " + osVersion + " kernelInfo: " + kernelInfo + " fusedAppToken: " + fusedAppToken + " deviceManufacturer: " + deviceManufacturer + " carrierPlmn: " + carrierPlmn + " deviceBrand: " + deviceBrand + " deviceBoard: " + deviceBoard + " buildHost: " + buildHost + " buildUser: " + buildUser + " sdkVersion: " + sdkVersion););
 
        //add your code here
     } );
     
window.broadcaster.addEventListener( "DeveloperOptionsEnabled", function(userInfo) {
         console.log( "DeveloperOptionsEnabled received! userInfo: " + JSON.stringify(userInfo)  );

       var defaultMessage = userInfo.defaultMessage;
       var timeStamp = userInfo.timestamp;
       var deviceID = userInfo.deviceID;
       var deviceModel = userInfo.deviceModel;
       var osVersion = userInfo.osVersion;
       var kernelInfo = userInfo.kernelInfo;
       var fusedAppToken = userInfo.fusedAppToken;
       var deviceManufacturer = userInfo.deviceManufacturer;
       var carrierPlmn = userInfo.carrierPlmn;
       var deviceBrand = userInfo.deviceBrand;
       var deviceBoard = userInfo.deviceBoard;
       var buildHost = userInfo.buildHost;
       var buildUser = userInfo.buildUser;
       var sdkVersion = userInfo.sdkVersion;
         console.log(" timeStamp: " + timeStamp + " deviceID: " + deviceID + " deviceModel: " + deviceModel + " osVersion: " + osVersion + " kernelInfo: " + kernelInfo + " fusedAppToken: " + fusedAppToken + " deviceManufacturer: " + deviceManufacturer + " carrierPlmn: " + carrierPlmn + " deviceBrand: " + deviceBrand + " deviceBoard: " + deviceBoard + " buildHost: " + buildHost + " buildUser: " + buildUser + " sdkVersion: " + sdkVersion););
 
        //add your code here
     } );
  
     
window.broadcaster.addEventListener( "BannedManufacturer", function(userInfo) {
       console.log( "BannedManufacturer received! userInfo: " + JSON.stringify(userInfo) );

       var defaultMessage = userInfo.defaultMessage;
       var timeStamp = userInfo.timestamp;
       var deviceID = userInfo.deviceID;
       var deviceModel = userInfo.deviceModel;
       var osVersion = userInfo.osVersion;
       var kernelInfo = userInfo.kernelInfo;
       var fusedAppToken = userInfo.fusedAppToken;
       var deviceManufacturer = userInfo.deviceManufacturer;
       var carrierPlmn = userInfo.carrierPlmn;
       var deviceBrand = userInfo.deviceBrand;
       var deviceBoard = userInfo.deviceBoard;
       var buildHost = userInfo.buildHost;
       var buildUser = userInfo.buildUser;
       var sdkVersion = userInfo.sdkVersion;

       console.log("BannedManufacturer: " +BannedManufacturer + " timeStamp: " + timeStamp + " deviceID: " + deviceID + " deviceModel: " + deviceModel + " osVersion: " + osVersion + " kernelInfo: " + kernelInfo + " fusedAppToken: " + fusedAppToken + " deviceManufacturer: " + deviceManufacturer + " carrierPlmn: " + carrierPlmn + " deviceBrand: " + deviceBrand + " deviceBoard: " + deviceBoard + " buildHost: " + buildHost + " buildUser: " + buildUser + " sdkVersion: " + sdkVersion); 
//add your code here
 } ); 

Download the code –  Cordova code iOS

window.broadcaster.addEventListener( "BlockedClipboardEvent", function(userInfo) {
       console.log( "BlockedClipboardEvent received! userInfo: " + JSON.stringify(userInfo) );

       var clipboardBlocked = userInfo.blocked;
       var action = userInfo.action;
       var timeStamp = userInfo.timestamp;
       var deviceID = userInfo.deviceID;
       var deviceModel = userInfo.deviceModel;
       var osVersion = userInfo.osVersion;
       var kernelInfo = userInfo.kernelInfo;
       var fusedAppToken = userInfo.fusedAppToken;
       var deviceManufacturer = userInfo.deviceManufacturer;
       var carrierPlmn = userInfo.carrierPlmn;

       console.log(" clipboardBlocked: " + cliboardBlocked + " timeStamp: " + timeStamp + " deviceID: " + deviceID + " deviceModel: " + deviceModel + " osVersion: " + osVersion + " kernelInfo: " + kernelInfo + " fusedAppToken: " + fusedAppToken + " deviceManufacturer: " + deviceManufacturer + " carrierPlmn: " + carrierPlmn);

//add your code here
} );

window.broadcaster.addEventListener( "BlockedKeyboardEvent", function(userInfo) {
       console.log( "BlockedKeyboardEvent received! userInfo: " + JSON.stringify(userInfo) );

       var defaultMessage = userInfo.defaultMessage;
       var keyboardBlocked = userInfo.blocked;
       var keyboard = userInfo.keyboard;
       var timeStamp = userInfo.timestamp;
       var deviceID = userInfo.deviceID;
       var deviceModel = userInfo.deviceModel;
       var osVersion = userInfo.osVersion;
       var kernelInfo = userInfo.kernelInfo;
       var fusedAppToken = userInfo.fusedAppToken;
       var deviceManufacturer = userInfo.deviceManufacturer;
       var carrierPlmn = userInfo.carrierPlmn;
       console.log(" keyboardBlocked: " + keyboardBlocked + " timeStamp: " + timeStamp + " deviceID: " + deviceID + " deviceModel: " + deviceModel + " osVersion: " + osVersion + " kernelInfo: " + kernelInfo + " fusedAppToken: " + fusedAppToken + " deviceManufacturer: " + deviceManufacturer + " carrierPlmn: " + carrierPlmn);

//add your code here
} );

window.broadcaster.addEventListener( "SslCertificateValidationFailed", function(userInfo) {
       console.log( "SslCertificateValidationFailed received! userInfo: " + JSON.stringify(userInfo) );

       var defaultMessage = userInfo.defaultMessage;
       var deveventDetailedErrorMessage = userInfo.DeveventDetailedErrorMessage ;
       var host = userInfo.host ;
       var certificateSHA1 = userInfo.certificateSHA1 ;
       var certificateCN = userInfo.certificateCN ;
       var timeStamp = userInfo.timestamp;
       var deviceID = userInfo.deviceID;
       var deviceModel = userInfo.deviceModel;
       var osVersion = userInfo.osVersion;
       var kernelInfo = userInfo.kernelInfo;
       var fusedAppToken = userInfo.fusedAppToken;
       var deviceManufacturer = userInfo.deviceManufacturer;
       var carrierPlmn = userInfo.carrierPlmn;

       console.log(" defaultMessage: " + defaultMessage + " deveventDetailedErrorMessage: " + deveventDetailedErrorMessage + " host: " + host + " certificateSHA1: " + certificateSHA1 + " certificateCN: " + certificateCN + " timeStamp: " + timeStamp + " deviceID: " + deviceID + " deviceModel: " + deviceModel + " osVersion: " + osVersion + " kernelInfo: " + kernelInfo + " fusedAppToken: " + fusedAppToken + " deviceManufacturer: " + deviceManufacturer + " carrierPlmn: " + carrierPlmn);

//add your code here
} );

window.broadcaster.addEventListener( "SslServerCertificatePinningFailed", function(userInfo) {
       console.log( "SslServerCertificatePinningFailed received! userInfo: " + JSON.stringify(userInfo) );

       var defaultMessage = userInfo.defaultMessage;
       var deveventDetailedErrorMessage = userInfo.DeveventDetailedErrorMessage ;
       var host = userInfo.host ;
       var certificateSHA1 = userInfo.certificateSHA1 ;
       var certificateCN = userInfo.certificateCN ;
       var timeStamp = userInfo.timestamp;
       var deviceID = userInfo.deviceID;
       var deviceModel = userInfo.deviceModel;
       var osVersion = userInfo.osVersion;
       var kernelInfo = userInfo.kernelInfo;
       var fusedAppToken = userInfo.fusedAppToken;
       var deviceManufacturer = userInfo.deviceManufacturer;
       var carrierPlmn = userInfo.carrierPlmn;

       console.log(" defaultMessage: " + defaultMessage + " deveventDetailedErrorMessage: " + deveventDetailedErrorMessage + " host: " + host + " certificateSHA1: " + certificateSHA1 + " certificateCN: " + certificateCN + " timeStamp: " + timeStamp + " deviceID: " + deviceID + " deviceModel: " + deviceModel + " osVersion: " + osVersion + " kernelInfo: " + kernelInfo + " fusedAppToken: " + fusedAppToken + " deviceManufacturer: " + deviceManufacturer + " carrierPlmn: " + carrierPlmn);

//add your code here
} );

window.broadcaster.addEventListener( "SslIncompatibleCipher", function(userInfo) {
       console.log( "SslIncompatibleCipher received! userInfo: " + JSON.stringify(userInfo) );

       var defaultMessage = userInfo.defaultMessage;
       var host = userInfo.host ;
       var IncompatibleCipherId = userInfo.IncompatibleCipherId ;
       var timeStamp = userInfo.timestamp;
       var deviceID = userInfo.deviceID;
       var deviceModel = userInfo.deviceModel;
       var osVersion = userInfo.osVersion;
       var kernelInfo = userInfo.kernelInfo;
       var fusedAppToken = userInfo.fusedAppToken;
       var deviceManufacturer = userInfo.deviceManufacturer;
       var carrierPlmn = userInfo.carrierPlmn;

       console.log(" defaultMessage: " + defaultMessage + " deveventDetailedErrorMessage: " + deveventDetailedErrorMessage + " host: " + host + " IncompatibleCipherId: " + IncompatibleCipherId + " timeStamp: " + timeStamp + " deviceID: " + deviceID + " deviceModel: " + deviceModel + " osVersion: " + osVersion + " kernelInfo: " + kernelInfo + " fusedAppToken: " + fusedAppToken + " deviceManufacturer: " + deviceManufacturer + " carrierPlmn: " + carrierPlmn);

//add your code here
} );

window.broadcaster.addEventListener( "SslIncompatibleVersion", function(userInfo) {
       console.log( "SslIncompatibleVersion received! userInfo: " + JSON.stringify(userInfo) );

       var defaultMessage = userInfo.defaultMessage;
       var host = userInfo.host ;
       var IncompatibleSslVersion = userInfo.IncompatibleSslVersion ;
       var timeStamp = userInfo.timestamp;
       var deviceID = userInfo.deviceID;
       var deviceModel = userInfo.deviceModel;
       var osVersion = userInfo.osVersion;
       var kernelInfo = userInfo.kernelInfo;
       var fusedAppToken = userInfo.fusedAppToken;
       var deviceManufacturer = userInfo.deviceManufacturer;
       var carrierPlmn = userInfo.carrierPlmn;

       console.log(" defaultMessage: " + defaultMessage + " deveventDetailedErrorMessage: " + deveventDetailedErrorMessage + " host: " + host + " IncompatibleSslVersion: " + IncompatibleSslVersion + " timeStamp: " + timeStamp + " deviceID: " + deviceID + " deviceModel: " + deviceModel + " osVersion: " + osVersion + " kernelInfo: " + kernelInfo + " fusedAppToken: " + fusedAppToken + " deviceManufacturer: " + deviceManufacturer + " carrierPlmn: " + carrierPlmn);

//add your code here
} );

window.broadcaster.addEventListener( "SslInvalidCertificateChain", function(userInfo) {
       console.log( "SslInvalidCertificateChain received! userInfo: " + JSON.stringify(userInfo) );

       var defaultMessage = userInfo.defaultMessage;
       var deveventDetailedErrorMessage = userInfo.DeveventDetailedErrorMessage ;
       var host = userInfo.host ;
       var certificateSHA1 = userInfo.certificateSHA1 ;
       var certificateCN = userInfo.certificateCN ;
       var timeStamp = userInfo.timestamp;
       var deviceID = userInfo.deviceID;
       var deviceModel = userInfo.deviceModel;
       var osVersion = userInfo.osVersion;
       var kernelInfo = userInfo.kernelInfo;
       var fusedAppToken = userInfo.fusedAppToken;
       var deviceManufacturer = userInfo.deviceManufacturer;
       var carrierPlmn = userInfo.carrierPlmn;

       console.log(" defaultMessage: " + defaultMessage + " deveventDetailedErrorMessage: " + deveventDetailedErrorMessage + " host: " + host + " certificateSHA1: " + certificateSHA1 + " certificateCN: " + certificateCN + " timeStamp: " + timeStamp + " deviceID: " + deviceID + " deviceModel: " + deviceModel + " osVersion: " + osVersion + " kernelInfo: " + kernelInfo + " fusedAppToken: " + fusedAppToken + " deviceManufacturer: " + deviceManufacturer + " carrierPlmn: " + carrierPlmn);

//add your code here
} );

window.broadcaster.addEventListener( "BlockedScreenCaptureEvent", function(userInfo) {
       console.log( "BlockedScreenCaptureEvent received! userInfo: " + JSON.stringify(userInfo) );

       var defaultMessage = userInfo.defaultMessage;
       var context = userInfo.context;
       var timeStamp = userInfo.timestamp;
       var deviceID = userInfo.deviceID;
       var deviceModel = userInfo.deviceModel;
       var osVersion = userInfo.osVersion;
       var kernelInfo = userInfo.kernelInfo;
       var fusedAppToken = userInfo.fusedAppToken;
       var deviceManufacturer = userInfo.deviceManufacturer;
       var carrierPlmn = userInfo.carrierPlmn;

       console.log(" context: " + context + " timeStamp: " + timeStamp + " deviceID: " + deviceID + " deviceModel: " + deviceModel + " osVersion: " + osVersion + " kernelInfo: " + kernelInfo + " fusedAppToken: " + fusedAppToken + " deviceManufacturer: " + deviceManufacturer + " carrierPlmn: " + carrierPlmn);

//add your code here
} );

window.broadcaster.addEventListener( "UrlWhitelistFailed", function(userInfo) {
       console.log( "UrlWhitelistFailed received! userInfo: " + JSON.stringify(userInfo) );

       var defaultMessage = userInfo.defaultMessage;
       var timeStamp = userInfo.timestamp;
       var host = userInfo.host;
       var deviceID = userInfo.deviceID;
       var deviceModel = userInfo.deviceModel;
       var osVersion = userInfo.osVersion;
       var kernelInfo = userInfo.kernelInfo;
       var fusedAppToken = userInfo.fusedAppToken;
       var deviceManufacturer = userInfo.deviceManufacturer;
       var carrierPlmn = userInfo.carrierPlmn;

       console.log(" defaultMessage: " + defaultMessage + " timeStamp: " + timeStamp + " host: " + host + " deviceID: " + deviceID + " deviceModel: " + deviceModel + " osVersion: " + osVersion + " kernelInfo: " + kernelInfo + " fusedAppToken: " + fusedAppToken + " deviceManufacturer: " + deviceManufacturer + " carrierPlmn: " + carrierPlmn);

//add your code here
} );

window.broadcaster.addEventListener( "SslInvalidMinRSASignature", function(userInfo) {
       console.log( "SslInvalidMinRSASignature received! userInfo: " + JSON.stringify(userInfo) );

       var defaultMessage = userInfo.defaultMessage;
       var deveventDetailedErrorMessage = userInfo.DeveventDetailedErrorMessage ;
       var host = userInfo.host ;
       var certificateSHA1 = userInfo.certificateSHA1 ;
       var certificateCN = userInfo.certificateCN ;
       var timeStamp = userInfo.timestamp;
       var deviceID = userInfo.deviceID;
       var deviceModel = userInfo.deviceModel;
       var osVersion = userInfo.osVersion;
       var kernelInfo = userInfo.kernelInfo;
       var fusedAppToken = userInfo.fusedAppToken;
       var deviceManufacturer = userInfo.deviceManufacturer;
       var carrierPlmn = userInfo.carrierPlmn;

       console.log(" defaultMessage: " + defaultMessage + " deveventDetailedErrorMessage: " + deveventDetailedErrorMessage + " host: " + host + " certificateSHA1: " + certificateSHA1 + " certificateCN: " + certificateCN + " timeStamp: " + timeStamp + " deviceID: " + deviceID + " deviceModel: " + deviceModel + " osVersion: " + osVersion + " kernelInfo: " + kernelInfo + " fusedAppToken: " + fusedAppToken + " deviceManufacturer: " + deviceManufacturer + " carrierPlmn: " + carrierPlmn);

//add your code here
} );

window.broadcaster.addEventListener( "SslInvalidMinECCSignature", function(userInfo) {
       console.log( "SslInvalidMinECCSignature received! userInfo: " + JSON.stringify(userInfo) );

       var defaultMessage = userInfo.defaultMessage;
       var deveventDetailedErrorMessage = userInfo.DeveventDetailedErrorMessage ;
       var host = userInfo.host ;
       var certificateSHA1 = userInfo.certificateSHA1 ;
       var certificateCN = userInfo.certificateCN ;
       var timeStamp = userInfo.timestamp;
       var deviceID = userInfo.deviceID;
       var deviceModel = userInfo.deviceModel;
       var osVersion = userInfo.osVersion;
       var kernelInfo = userInfo.kernelInfo;
       var fusedAppToken = userInfo.fusedAppToken;
       var deviceManufacturer = userInfo.deviceManufacturer;
       var carrierPlmn = userInfo.carrierPlmn;

       console.log(" defaultMessage: " + defaultMessage + " deveventDetailedErrorMessage: " + deveventDetailedErrorMessage + " host: " + host + " certificateSHA1: " + certificateSHA1 + " certificateCN: " + certificateCN + " timeStamp: " + timeStamp + " deviceID: " + deviceID + " deviceModel: " + deviceModel + " osVersion: " + osVersion + " kernelInfo: " + kernelInfo + " fusedAppToken: " + fusedAppToken + " deviceManufacturer: " + deviceManufacturer + " carrierPlmn: " + carrierPlmn);

//add your code here
} );

window.broadcaster.addEventListener( "SslInvalidMinDigest", function(userInfo) {
       console.log( "SslInvalidMinDigest received! userInfo: " + JSON.stringify(userInfo) );

       var defaultMessage = userInfo.defaultMessage;
       var deveventDetailedErrorMessage = userInfo.DeveventDetailedErrorMessage ;
       var host = userInfo.host ;
       var certificateSHA1 = userInfo.certificateSHA1 ;
       var certificateCN = userInfo.certificateCN ;
       var timeStamp = userInfo.timestamp;
       var deviceID = userInfo.deviceID;
       var deviceModel = userInfo.deviceModel;
       var osVersion = userInfo.osVersion;
       var kernelInfo = userInfo.kernelInfo;
       var fusedAppToken = userInfo.fusedAppToken;
       var deviceManufacturer = userInfo.deviceManufacturer;
       var carrierPlmn = userInfo.carrierPlmn;

       console.log(" defaultMessage: " + defaultMessage + " deveventDetailedErrorMessage: " + deveventDetailedErrorMessage + " host: " + host + " certificateSHA1: " + certificateSHA1 + " certificateCN: " + certificateCN + " timeStamp: " + timeStamp + " deviceID: " + deviceID + " deviceModel: " + deviceModel + " osVersion: " + osVersion + " kernelInfo: " + kernelInfo + " fusedAppToken: " + fusedAppToken + " deviceManufacturer: " + deviceManufacturer + " carrierPlmn: " + carrierPlmn);

//add your code here
} );

window.broadcaster.addEventListener( "JailbrokenDevice", function(userInfo) {
       console.log( "JailbrokenDevice received! userInfo: " + JSON.stringify(userInfo) );

       var defaultMessage = userInfo.defaultMessage;
       var internalError = userInfo.internalError;
       var timeStamp = userInfo.timestamp;
       var deviceID = userInfo.deviceID;
       var deviceModel = userInfo.deviceModel;
       var osVersion = userInfo.osVersion;
       var kernelInfo = userInfo.kernelInfo;
       var fusedAppToken = userInfo.fusedAppToken;
       var deviceManufacturer = userInfo.deviceManufacturer;
       var carrierPlmn = userInfo.carrierPlmn;

       console.log(" timeStamp: " + timeStamp + " deviceID: " + deviceID + " deviceModel: " + deviceModel + " osVersion: " + osVersion + " kernelInfo: " + kernelInfo + " fusedAppToken: " + fusedAppToken + " deviceManufacturer: " + deviceManufacturer + " carrierPlmn: " + carrierPlmn);

//add your code here
} );

How to Add DEV-Events™ to Any Mobile App(s) on Appdome

Follow the step-by-step instructions in this knowledge base to add DEV-Events™ to your Cordova Mobile App.

That is it – Enjoy Appdome with DEV-Events™ in your app!

To zoom out on this topic, visit the Mobile App Security page on our website.

Thank you!

Thanks for visiting Appdome! Our mission is to make mobile integration easy. We hope we’re living up to the mission with your project. If you don’t already have an account, you can sign up for free.

Liron Dror

Have a question?

Ask an expert

ZoeMaking your security project a success!