chariotsolutions / phonegap-nfc

PhoneGap NFC Plugin
MIT License
703 stars 547 forks source link

Event never fired when reading empty NDEF tag #5

Closed don closed 12 years ago

don commented 12 years ago

The ndef event is never fired when reading some formatted empty NDEF tags.

don commented 12 years ago

I think this was an invalid tag, rather than an empty tag.

if no messages come back, we could fire an event without a message (or an error?) https://github.com/chariotsolutions/phonegap-nfc/blob/master/src/com/chariotsolutions/nfc/plugin/NdefPlugin.java#L245

don commented 12 years ago

EXTRA_NDEF_MESSAGES is optional, we have a tag from EXTRA_TAG so an NDEF event should be fired even through we don't have a message

don commented 12 years ago

1206a309e2917f7b624e4bea3484a7a1be6e2581