Content

[/fusion_toggle][/fusion_accordion][fusion_accordion type="" boxed_mode="" border_size="1" border_color="" background_color="" hover_color="" divider_line="" title_font_size="14px" icon_size="" icon_color="" icon_boxed_mode="" icon_box_color="" icon_alignment="" toggle_hover_accent_color="#16abd8" hide_on_mobile="small-visibility,medium-visibility,large-visibility" class="" id=""][fusion_toggle title="DEV-Events for iOS Applications" open="no"]

Download the code - Cordova code iOS

How to Follow and Receive Appdome Security Events: 

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 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
} );
[/fusion_toggle][/fusion_accordion][/fusion_builder_column][/fusion_builder_row][/fusion_builder_container][fusion_builder_container hundred_percent="no" equal_height_columns="no" menu_anchor="" hide_on_mobile="small-visibility,medium-visibility,large-visibility" class="" id="" background_color="" background_image="" background_position="center center" background_repeat="no-repeat" fade="no" background_parallax="none" parallax_speed="0.3" video_mp4="" video_webm="" video_ogv="" video_url="" video_aspect_ratio="16:9" video_loop="yes" video_mute="yes" overlay_color="" video_preview_image="" border_size="" border_color="" border_style="solid" padding_top="" padding_bottom="" padding_left="" padding_right=""][fusion_builder_row][fusion_builder_column type="1_1" layout="1_1" background_position="left top" background_color="" border_size="" border_color="" border_style="solid" border_position="all" spacing="yes" background_image="" background_repeat="no-repeat" padding_top="" padding_right="" padding_bottom="" padding_left="" margin_top="0px" margin_bottom="0px" class="" id="" animation_type="" animation_speed="0.3" animation_direction="left" hide_on_mobile="small-visibility,medium-visibility,large-visibility" center_content="no" last="no" min_height="" hover_type="none" link=""][fusion_text]

How to Add DEV-Events™ to Any Mobile App(s) on AppdomeThank you!

Scroll Up