It would be great if there was a sample app using this plugin to show best way to read/write NFC
Can we have a sample app or is there any other app on forge that is using this plugin?
Hi Norman and Stacey,
At the moment, we do not have any example working with it.
We will check how easily we can have a working demo using this plugin.
Hi! Just wanna ask if this plugin is working? I can't seem to make it work.
Yes, I just need an app that reads NFC tags into an on-device database for later upload once a wireless internet connection made.
I try to read my NFC tag but neither NDEF-listener, Mimetype-listener nor Shareprogress give result. Using NCF-tools I can easily write and read data from the tag.
Just a note to make this plugin work. You need to be in Native Platform mode rather than in OutSystems Now. There are some plugins that will only work when you are in Native Platform.
I generate the app for Android through Native Platforms. Install the .apk on my phone. Get the Beacons and QR-reader functionality up and running but NFC doesn't give a response. As said, reading NFC through another app does work and I can write data to the tag.
Here's a sample oml. I didn't test this oml in Native Platform yet since the NFC enabled phone that I'm using is not available right now. But I have a working app using this plugin.
Make sure you have a written data on your NFC tag/sticker so you will see the output once it is scanned.
Getting "nfc is not defined" error thrown from:scripts/NfcPlugin.Nfc.NdefListener.controller.js
The error:[2017-03-07T14:35:36.683Z]: nfc is not definedReferenceError: nfc is not defined at Object.removeNdefListener
Your app must be on native to remove that error. They won't work if you just use it on OutSystems Now.
Louise Villanueva wrote:
Thanks for your response. I am running the app in native mode. I actually also tested the your sample.oml