googlearchive / chrome-nfc

Chrome App NFC Library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can't claim interface

rjenks opened this issue · comments

I am working on adding NFC support to my Chrome Kiosk app to (hopefully) be able to read NFC tags using a Chromebit with attached ACR122. I am doing development on a Mac which I've had good success using chrome.usb for another project about 2 years ago.

It doesn't seem to be able to claim the interface. The claimInterface call seems to succeed, but later it reports that it had an error claiming the interface. (see screenshot)

To troubleshoot the problem, I am currently using the individual source files (not the closure version) so that I can add debugging. I've tried adding a check for chrome.runtime.lastError ino the claimInterface callback, but it doesn't trigger.

Also note that running your sample app has the same behavior.

Is this because of the deprecation of Win/Mac chrome apps? Is it possible that MacOS is holding the ACR122 such that Chrome can't claim it (how could I tell)?

I am going to try to run this on an actual Chromebook, but I don't have access to one at the moment. It's going to be a pain to develop this if it only runs on a Chromebook, but I can deal.

Screen Shot 2019-07-09 at 12 57 14 PM

Ok, just tried it on a new Chromebook and the sample worked. I guess since Mac/Win isn't supported anymore this means I will need to do development on a Chromebook.