EddyVerbruggen / nativescript-nfc

:pencil: NativeScript plugin to discover, read, and write NFC tags
MIT License
84 stars 37 forks source link

how to view NFC Tags ID on setOnTag? #47

Closed Efrenray closed 5 years ago

Efrenray commented 5 years ago

my School ID has NFC tag in it and would like to view its data. Itried the setOnNdef and returned this:

Tag discovered, but no listener was set via setOnTagDiscoveredListener. Ndef: {"id":[86,56,70,70],"techList":["android.nfc.tech.NfcA","android.nfc.tech.MifareClassic","android.nfc.tech.NdefFormatable"]}

also did the setOnTag and returned:

Discovered a tag with ID 86,56,70,70

I'd like to view the data on the ID before writing on it. is this possible?

EddyVerbruggen commented 5 years ago

Should work, when setOnTagDiscoveredListener is set. Just try and run the demo.