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: https://github.com/justinribeiro/hce-to-chromenfc-app

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: https://github.com/justinribeiro/android-hostcardemulation-sample

Third, my slightly modified Chrome-NFC fork: https://github.com/justinribeiro/chrome-nfc/tree/type4-conversation

Finally, the video of it all in action: