Steeve G
Steeve G

Reputation: 77

How to read data for non-ndef NFC tag with phonegap

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

Answers (1)

Michael Roland
Michael Roland

Reputation: 40821

That's not supported by that phonegap-nfc plugin.

Upvotes: 1

Related Questions