Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allowBackup is not working for IOS #351

Open
sudeekshachip1003 opened this issue May 21, 2021 · 1 comment
Open

allowBackup is not working for IOS #351

sudeekshachip1003 opened this issue May 21, 2021 · 1 comment
Labels

Comments

@sudeekshachip1003
Copy link

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

@dmitry-salnikov
Copy link
Contributor

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
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants