Created on 18 July 2016
icon_unfollowing
Login to follow
nfc-plugin

NFC Plugin

Stable version 1.0.6 (Compatible with OutSystems 11)
Other versions available for 10
Uploaded on 22 December 2022 by 
nfc-plugin

NFC Plugin

Details
Leverage NFC functionalities on your mobile apps. Supports iOS and Android
Read more

Read, write and share data through NFC. This plugin encapsulates the functionalities available on https://github.com/OutSystems/phonegap-nfc, providing an easy to use set of client actions and web blocks.


Reading NFC data


Reading data from NFC sensor is an asynchronous process and is possible using one of the following web blocks:

  • MimeTypeListener: Listens to any NFC Tag that has data with a specific mime type (i.e. “text/plain”). This listener takes precedence over NdefListener.

    Usage is as simple as dragging and dropping into any container and specifying a mime type and callback.

    Note: Only TAGs containing records of type RTD_TEXT or RTD_URI are supported.

  • NdefListener: Listens to any NFC Tag containing an NDEF Message. MimeTypeListener takes precedence over this more generic listener.

    Just like MimeTypeListener, usage is straightforward. Just drag and drop into a container and assign a callback.

    Note: Only TAGs containing records of type RTD_TEXT or RTD_URI will be decoded. However, the RAW data is available for advanced usages.


Writing NFC data


Writing data to NFC TAGs is easily done with the following client actions:

  • WriteText: Write a single text record into an NFC TAG.

    Warning: Will override the content of the NFC TAG.

  • WriteDataRecords: Write one or more NDEF records into an NFC TAG (See NfcWriteRecord).

Receiving feedback on the write process is possible using WriteProgress web block.


Share


Sharing data between two NFC enabled devices is as simple as touching the devices. Using this functionality is as simple as using one of the following actions:

  • ShareText: Share, once, a text record with another device.

  • StartSharing: Enables NFC sharing on the device until StopSharing action is executed.

    This gives the ability to share the same information with several different devices.

To receive feedback on the sharing process, use ShareProgress web block.

Release notes (1.0.6)
  • Fixed building error on iOS
    • cordova-plugin-add-swift-support upgraded to version 2.0.2
Reviews (2)
by 
2022-11-21
in version 1.0.5
NFC Plugin works great after update to 1.0.5!
by 
2022-11-14
in version 1.0.4
The Forge doesn't support replying to feedback, but I do like to address the feedback given by Guinten.
Why are you calling out a contributor to the Forge, that contributes to the community so much, like this?
If there is someone contributed to the community so much, then it is Miguel.

Contributions, are mostly done, for free, by developers. There is no SLA that requires them to reply within a given time, or even to reply at all on demand.
There may be many reasons why a Forge contribution team has no time available to reply.

Please be more considerate next time you rate a component with 1 star, just because the component created did not have time to reply.
Category
Device capabilities, Other device capabilities
Tags
Support options
This asset is not supported by OutSystems. You may use the discussion forums to leave suggestions or obtain best-effort support from the community, including from  who created this asset.
Dependencies
See all 1 dependencies
Application Objects
NFC Plugin has 4 AOs.
Team
Compatible with
Version 11
Database:
All
Asset consumers
No consumers yet.
Weekly downloads