π³NFC
minimum version is v2.10.0
Before reading this page, please make sure you've set up you've enabled NFC.
π³NFCNFC Bubble Examples:
π§ Bubble.io Plugin
[Element] Natively - NFC
Fields:
Read Alert Message
Write Alert Message
Read Detected Message
Write Detected Message
nfcresponse - it's a predefined (by plugin) bubble type that needs to be selected (Natively - NFCResponse type)
Events:
NFC Read Failed
NFC Write Failed
NFC Write Success
NFC Read Success
NFC Ready To Use - mean you've received 'NFC Is Available' state (Usable for Android)
States:
Error
Result
NFC Tag ID
NFC Tag Type
NFC Is Available - yes/no (For Android, you need to ask the user to enable it in device settings)
Actions:
Read Data
Write Data
Record Data - text (can be url or just text)To open app with card you can use your bundle id (Like this: com.bundle.id://open?url={url you wanna open}
Record ID - text (better to use a shorter ID, for now, it's not usable, so you can hardcode it to some value, but in the future Natively will allow to Write/Read more than 1 data)
Record Data Type - text, uri. When the data type is set to 'uri', scanning a NFC cord will automatically open the link specified in the Record Data field in the device's default web browser.
How to use?
Make sure you've set up NFC for your app
(Do not forget to rebuild app)
Add Natively - NFC element on the page
Fill element fields (Alert messages, etc.)
The Banner will set up automatically on the page load
Call Read or Write actions
π JavaScript SDK
NativelyNFCService
Last updated
Was this helpful?