Skip to content

isw-kudos/cordova-plugin-data-protection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cordova-plugin-data-protection

This plugin retrieves information about an Android/iOS devices device encryption.

Currently only returns true/false based on whether iOS has Data Protection available or Android has whole device encryption (passcode at boot)

onDeviceReady: function () {
    "use strict";
    console.log("device ready");

    if(cordova.plugins && cordova.plugins.dataprotection){
      cordova.plugins.dataprotection.isEnabled(
        function(result) {
          console.log("stored data encryption available: " + result);
        }, function(error) {
          console.log("dataprotection error: " + error);
      });
    }

    app.receivedEvent('deviceready');
},

About

A cordova plugin for detecting storage encryption

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published