MozNFC is the top level API for operating in NFC Reader/Writer mode, NFC P2P mode and NFC Card Emulation mode.
Note: This interface is accessed via the
onpeerfoundevent callback function is called when a NFC device is detected. Available in Firefox OS 2.2+.
onpeerlostevent callback function is called when the peer object detected in onpeerfound is no longer available to the application (for example when the peer device moves out of range.)
ontagfoundevent callback function is called when a NFC Tag is detected. Available in Firefox OS 2.2+.
ontaglostevent callback function is called when the tag object detected in ontagfound is no longer available to the application. (for example when the tag moves out of range) Available in FirefoxOS 2.2+.
The NFC implementation in Gecko follows the NFC Forum specifications.
|Feature||Chrome||Firefox (Gecko)||Internet Explorer||Opera||Safari (WebKit)|
|No support||No support||No support||No support|
|Feature||Android||Firefox Mobile (Gecko)||Firefox OS (Gecko)||IE Phone||Opera Mobile||Safari Mobile|
|Basic support||No support||No support||2.0 moz ||No support||No support||No support|
 Available in privileged apps as of Firefox OS 2.2; certified-only before that.
- Using the NFC API
- Using the NFC emulator
- Related W3C APIs:
© 2016 Mozilla Contributors
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.