Getting Started with Core NFC | Kodeco

In this tutorial, you’ll learn how to use CoreNFC to connect wirelessly to other devices or NFC tags.


This is a companion discussion topic for the original entry at https://www.kodeco.com/9582458-getting-started-with-core-nfc

Thanks for the tutorial; it’s clear and well-organized.

One thing to consider for a possible future update: maybe I’m missing something, but it seems that once the changes are made to handle custom data, the app is no longer capable of writing to a blank tag (or a tag that has been corrupted).

I’ve been using the same tag each step of the way and at some point, one of the actions didn’t completely properly. After that, the app is unable to read the tag using the “scan” on the visitor screen, nor is it able to save a location from the admin page.

Tracing through the code it seems to me that it’s because every action, including the create location, begins with a read, and the first thing that read does is call readNDEF. And the callback will always invoke the error handler since there isn’t an NDEF message.

I’m still thinking through how best to fix, but probably will just change createLocation to directly call updateLocation.