Hi,
I followed the http://ionicframework.com/docs/v2/native/cardio/ documentation and tried to use CardIO. When i tried running the app using ionic view I am seeing the error “plugin_not_installed”.
Here is the javascript that executes on a button click.
scanCard(e) {
this.platform.ready().then(()=> {
CardIO.canScan().then((res: boolean)=> {
if (res) {
let alert = this.alertCtrl.create({
title: 'Can Scan?',
message: '' + res,
buttons: ['OK']
})
alert.present();
}
}).catch((err: any)=> {
let alert = this.alertCtrl.create({
title: 'Error',
message: err,
buttons: ['OK']
})
alert.present();
})
})
}
I have installed the plugin by executing the following command.
ionic plugin add https://github.com/card-io/card.io-Cordova-Plugin
I can see the plugin installed under plugins folder. What am i doing wrong? Why I am seeing “plugin_not_installed” error? Please help.
Thanks.
Lokesh.