Reputation: 77
Using phonegap/cordova, how can I read the data of an NFC tag that is not in NDEF format?
I'm using phonegap-nfc plugin for Android.
Here's how I get the id of the tag :
nfc.addTagDiscoveredListener(
function(nfcEvent){
console.log(nfcEvent.tag.id);
},
function() {
console.log("Listening for NFC tags.");
},
function() {
console.log("NFC activation failed.");
}
);
How to get the data?
Upvotes: 2
Views: 1020