Android HCE talking to Chrome App with NFC reader

Sometimes you want your Android HCE to talk to the NCF reader in a Chrome App. Sample code included.

1 min read Filed in IoT

The other day over on Google+, I showed off the Chrome DevTools console spitting out bytes of our NFC conversation. Screenshots are good, video demo and code samples are better. So, without further ado, the pieces to make this all work together.

First, the Chrome App source code:

No need to build chrome-nfc, I’ve included the proper build in that repo. It’s as turnkey as I could make it.

Second, the Android App source code:

Third, my slightly modified Chrome-NFC fork:

Finally, the video of it all in action: