Using non native ionic plugin

#1

Hello,

I am using the https://github.com/DavidStrausz/cordova-plugin-live-ocr, which is in Ionic 2 and I want to use it in my Ionic 3 project.
So what I do is copy the project in my root directory and create the package.json via npm init
Then I install the cordova plugin ionic cordova plugin add cordova-plugin-live-ocr

When I use it on my IOS device, I got an error like undefined is not an object (evaluating cordova.plugins.LiveOcrPlugin)

My code:

import {Component} from "@angular/core";
import {Loading, LoadingController} from "ionic-angular";

declare var cordova;

@Component({
  selector: 'scan',
  templateUrl: 'scan.html'
})

export class Scan{


  constructor() {
  }


  private scan() {
    cordova.plugins.LiveOcrPlugin.recognizeText(
      (success) => {
        
      },
      (error) => {
    
      });
}

  }
}

Please help!