Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.

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