BlinkID Error - Native: tried calling BlinkId.BarcodeRecognizer, but the BlinkId plugin is not installed

I have an Ionic 4 project which I want to integrate the BlinkID plugin to scan PDF417 barcodes. I installed the BlinkID plugin following instructions from the Ionic website and added the snippet to scan barcodes. However I get an error on the line where we call the BarcodeRecognizer function.

const barcodeRecognizer = new this.blinkId.BarcodeRecognizer();
barcodeRecognizer.scanPdf417 = true;

The error from XCode console is;
WARN: Native: tried calling BlinkId.BarcodeRecognizer, but the BlinkId plugin is not installed.
WARN: Install the BlinkId plugin: 'ionic cordova plugin add blinkid-cordova’

Can you please assist.