M
M
mkrichet2019-10-29 11:42:44
JavaScript
mkrichet, 2019-10-29 11:42:44

How to use fingerprint authentication?

I need to use fingerprint authentication on android and iphone. How to do it right?
I found several options:
1) (mhartington Ionic Team)
When in app.module.ts

import { FingerprintAIO } from '@ionic-native/fingerprint-aio';

@NgModule({
  providers: [
...
    FingerprintAIO,
...
  ]
})

Mistake:

index.js:92 Uncaught TypeError: Object(...) is not a function

Example .
2) From ionicframework.com
When in app.component.ts
import { FingerprintAIO } from '@ionic-native/fingerprint-aio/ngx';

Mistake:

TS2307: Cannot find module '@ionic-native/fingerprint-aio/ngx'.

Example.
3) From example
Error:

plugin_not_installed

or

"SECURITY_EXCEPTION"

How to do it correctly on ionic 4?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
Fayozzhon Berdiev, 2019-10-29
@CybernatiC

plugin_not_installed -
Ionic cordova plugin add ... plugin not installed.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question