I would like to read an NFC tag’s UID, tags don’t have any ndef message or anything (empty), just UID. It’s easy to do on Android, but Phonegap development is way faster so I would like to know if it’s possible to get it working on Phonegap, probably using the phonegap-nfc plugin.
I would like to read an NFC tag’s UID , tags don’t have any
Share
The phonagap-nfc plugin will allow you to read the
tag's UID.nfc.addTagDiscoveredListener()is good if you need the tag id. As ofphonegap-nfc-0.4.0the tag id is also included with theNDEFlisteners when it is available.You can convert the id to a hex string for display with
nfc.bytesToHexString(tag.id)