         let authenticationContext = LAContext();
         var pluginResult = CDVPluginResult(status: CDVCommandStatus_ERROR, messageAs: "Something went wrong");
         var reason = "Authentication";
+        var policy:LAPolicy = .deviceOwnerAuthentication;
         let data  = command.arguments[0] as AnyObject?;
 
         if let disableBackup = data?["disableBackup"] as! Bool? {

import LocalAuthentication

@objc(Fingerprint) class Fingerprint : CDVPlugin {

    fileprivate var policy:LAPolicy!

    @objc(isAvailable:)
    func isAvailable(_ command: CDVInvokedUrlCommand){
        let authenticationContext = LAContext();
        var biometryType = "finger";
        var error:NSError?;

        let available = authenticationContext.canEvaluatePolicy(policy, error: &error);



    override func pluginInitialize() {
        super.pluginInitialize()
    }
}

