Interact with NFC Tags on a Mobile Device

A Lightning web component can use a device’s native NFC functionality to read, erase, and write to NFC tags. When an NFC operation is successful, the text data extracted from the NFC tag or a simple success message is returned to the Lightning web component that invoked it.

NFC operations are performed locally on the mobile device, and don't need a network connection. However, NFCService requires access to platform-specific APIs that are available only within compatible Salesforce mobile apps.

NFCService does not and cannot function when running in a web browser, whether on a desktop or mobile device.

Important