简体   繁体   中英

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?

该phonegap-nfc插件不支持该功能。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM