NFC with JavaScript [closed]

时光总嘲笑我的痴心妄想 提交于 2019-12-29 07:44:08

问题


is there any JavaScript NFC API? I would like to read tags from a WebApplication (without PhoneGap). Or is there any way to use the NFC from JavaScript through JAVA?

Best


回答1:


You can't read tags from webApplication. Browsers does not communicate with NFC resources (it bored me too!!) The unique way to implementing NFC features with Javascript through Android Browser is using a WebView or framework like phoneGap in a native app.




回答2:


In the near future it could be possible to use NFC directly from the browser, check this out

Or, if you want more info about then you can check the Mozilla MDN Doc about this! Sounds interesting indeed

Based on this link, you can also check if you browser has support for NFC.

Interesting link about it: Web NFC Community Group report




回答3:


I haven't tried actually tried it myself, but there is a a number of NFC plugins 1,2,3 for PhoneGap. This should allow you to use NFC in your HTML applications. See also:

  • http://www.slideshare.net/m00sey/nfc-phone-gapday



回答4:


They have proprietary API that support JavaScript or Java applets connection to their NFC reader. API is free of charge and seems as very good alternative.

Read more at http://www.d-logic.net/nfc-rfid-reader-sdk/



来源:https://stackoverflow.com/questions/9729743/nfc-with-javascript

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!