简体   繁体   中英

Can't Read data (payload) from non-NDEF tag

I'm using Phonegap-nfc plugin

I'm trying to read data (payload) from my non-NDEF NFC card. the only ACTION that is triggered is ACTION_TAG_DISCOVERED and i only can read the tag_info.

the tag's techs are NfcB and IsoDep

nfc_tech_filter.xml

<tech-list>
    <tech>android.nfc.tech.NfcB</tech>
    <tech>android.nfc.tech.IsoDep</tech>
</tech-list>

NfcReader/AndroidManifest.xml

<intent-filter>
            <action android:name="android.nfc.action.NDEF_DISCOVERED" />
            <action android:name="android.nfc.action.TECH_DISCOVERED" />
            <action android:name="android.nfc.action.TAG_DISCOVERED" />
            <category android:name="android.intent.category.DEFAULT" />
</intent-filter>

can anyone please help me get the data?

This plugin only supports NDEF. Android supports NfcB and IsoDep so it's possible to extend this plugin to do what i need.

Thanks to Don ...

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