Issue adding ionic native plugin to ionic v3 project

@mhartington i have created issue here

Can you please post the version for that ionic-native plugin? As I stated on twitter, you probably are installing the newer plugin (V5) which is only for Ionic 4

$ npm install --save @ionic-native/fingerprint-aio@4

I have installed version 4.2.0 as you described for me on twitter

So i have that error after installing the plugin using the method you told me earlier on twitter

      try {
        await this.platform.ready();
        const available = await this.faio.isAvailable();
      } catch (e) {
        console.error("This is error" + e);

How are you testing this on device? What command are you running?
If you’re using trying to use live-reload on the device, that currently does not work.

No i didnt use live reload, i deploy the app to my device then open chrome browser, chrome://inspect to see what the log says

How are you building and deploying?

ionic cordova run android

@mhartington since i am getting plugin not installed so i then went on to add the plugin again using this command

ionic cordova plugin add cordova-plugin-fingerprint-aio

And the fingerprint logged finger in my console.

yes but without livereload

I have tried this.

ionic start myApp blank --type=angular
cd myApp
ionic cordova plugin add cordova-plugin-fingerprint-aio
npm install --save @ionic-native/fingerprint-aio@4

In app.module.ts

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

  providers: [


and then in home.ts

import { Component } from '@angular/core';
import { NavController, Platform } from 'ionic-angular';
import { FingerprintAIO } from '@ionic-native/fingerprint-aio';

  selector: 'page-home',
  templateUrl: 'home.html'
export class HomePage {
    private fingerPrint: FingerprintAIO,
    private platform: Platform,
    public navCtrl: NavController
  ) {
    .then(() => this.fingerPrint.isAvailable())
    .then(val => console.log('val', val))

When I ran on a device

ionic cordova run android

I got


1 Like

I got it fixed too…Thanks alot but another question is if i need to use other plugins do i need to first use this method like running npm i @ionic-native/plugin@version-number --save

For ionic-angular v3 project, you need to specify the v4 version of the ionic native plugin.

Ok Boss…You made my day a delightful one after going through so much. Thank you so much for your time and effort, I am very grateful. God bless the Team