Hi, has anyone tried using reader mode in nfc plugin? Iam trying to use it in my app, but it doesnt work at all, here is piece of code where i use it.
return new Promise<string>((resolve)=>{
let alert=this.alertCtrl.create({title:'Přiložte kartu:',enableBackdropDismiss: false,
buttons: [{
text: 'Zrušit',
role:'cancel',
handler: data => {
resolve(null);
}}]
});
alert.present();
this.nfc.readerMode(this.nfc.FLAG_READER.NFC_A,(tag)=>{
console.log("tag:"+tag);
resolve(null);
},
error=>{
console.log("errTag"+error);
resolve(null);
});
})
It shows the alert, but nothing happens when i read a tag. It also doesnt log any error. Has anyone some working example?