Re: [web-nfc] Web-NFC status question (#159)

I found this thread while googling for null returns, had to combine a couple pieces of code from the sample to the document about the standard to make this functional example: (only grabs text records)
https://gist.github.com/thelamer/a13e6cd65ff40815ec0a58b1c1bdd710

As this is supported and functional in the current chrome stable for Android, couple notes is that:
1. You need to setup a legit Https endpoint 
2. You need to get a token from here https://developers.chrome.com/origintrials/#/view_trial/236438980436951041 pointed to that domain
3. If you lack NFC tags the only emulator I found that was functional for phone to phone is https://play.google.com/store/apps/details?id=com.maxsoft.ndeftagemulator , NFC tools for android does not work with their beta emulation available in the pro version 

-- 
GitHub Notification of comment by thelamer
Please view or discuss this issue at https://github.com/w3c/web-nfc/issues/159#issuecomment-642253012 using your GitHub account

Received on Wednesday, 10 June 2020 20:54:59 UTC