Login to follow
NFC Plugin (Capacitor)

NFC Plugin (Capacitor) (ODC)

Stable version 1.0.3 (Compatible with ODC)
Uploaded on 19 Mar by Nuno Roxo
NFC Plugin (Capacitor)

NFC Plugin (Capacitor) (ODC)

Documentation
1.0.3

Installation, Configuration and Usage1. Install the component

Add NFC Plugin (Capacitor) to your OutSystems ODC application.

2. Build the mobile app

Generate a new mobile build and install it on a physical device with NFC support enabled.

3. Check device compatibility

Use the provided actions to verify whether NFC is supported and enabled on the device:

  • IsSupported

  • GetStatus

  • ShowSettings

4. Read NFC tags

Start a scan session using the available scan actions.
When a tag is detected, the plugin returns a structured result with:

  • Tag identifier

  • Event type

  • Parsed NDEF records

  • Raw NDEF message

Supported record types:

  • Text

  • URI

  • MIME

5. Write NFC tags

Use the write actions to write NDEF records to a detected NFC tag.
Supported write scenarios include:

  • Text records

  • URL records

  • MIME records

6. Handle scan sessions

Use the available actions to start and stop scanning sessions as needed, and handle events, errors, and cancellations in your app flow.

7. Important notes

  • NFC features require a real mobile device

  • Behaviour may vary depending on device and tag type

  • Some operations, such as formatting or making a tag read-only, may not be supported by all tags