cordova-plugin-fingerprint-aio icon indicating copy to clipboard operation
cordova-plugin-fingerprint-aio copied to clipboard

allowBackup is not working for IOS

Open sudeekshachip1003 opened this issue 4 years ago • 1 comments

I tried to add allowBackup optional parameter for isAvailable, but isAvailable is not accepting any param. Anything else to be done to enable backup option(passcode) for IOS?

cordova-plugin-fingerprint-aio : 4.0.2 @ionic-native/fingerprint-aio : 5.33.0

sudeekshachip1003 avatar May 21 '21 10:05 sudeekshachip1003

That's rather a problem in Ionic wrapper than in the plugin - types in it are outdated and don't match the latest plugin version. In order to specify allowBackup, you can use plugin directly, e.g.:

(window as any).Fingerprint.isAvailable((result: string) => {
  resolve(result);
}, (errorObject: {code: string, message: string}) => {
  reject(new Error(errorObject.message));
}, {
  allowBackup: true
});

dmitry-salnikov avatar Jul 27 '21 12:07 dmitry-salnikov