[NFC Plugin] Any chance to get a sample app using this plug in?

[NFC Plugin] Any chance to get a sample app using this plug in?

  
Forge Component
(1)
Published on 2016-07-18 by OutSystems Experts
1 vote
Published on 2016-07-18 by OutSystems Experts

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.


Cheers,

RG

Hi! Just wanna ask if this plugin is working? I can't seem to make it work. 


Thanks, 

Louise

Yes, I just need an app that reads NFC tags into an on-device database for later upload once a wireless internet connection made.


Hi,

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.

Any suggestions?

Thx

Sander

Hi guys!


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. 


Cheers,

Louise :)

Hi Louise,

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.

Thx


Sander

Hi Sander!


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.


Cheers,

Louise

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 defined
ReferenceError: nfc is not defined
    at Object.removeNdefListener

at Object.onDestroyAction

Hi Lennard,


Your app must be on native to remove that error. They won't work if you just use it on OutSystems Now.


Regards,

Louise

Louise Villanueva wrote:

Hi Lennard,


Your app must be on native to remove that error. They won't work if you just use it on OutSystems Now.


Regards,

Louise

Hi Louise,

Thanks for your response. I am running the app in native mode. I actually also tested the your sample.oml


Regards,

Lennard



Hi,

I also tried Louise's solution on native platform. I used it on NXP MILFARE classic 1K tag. As Sander tried before, I got no read data from the solution, while successfully got all tag info plus data out from other apps.

I am looking for the way to get tag's serial ID to identify each tag before attempt any write/update tag. Has anyone successfully used this plugin to read/write NFC tag yet?

Regards,

Manajit

Hello,


I am trying to deploy the NFC Tag but it is not working, i tried Louise's sample, same result. It would be nice if we got a sample app to figure how it works.

I just added the NFC Plugin to my app.

I dragged a Container in a screen... and then a Block into that Container.

I selected the NdefListener from the NfcPlugin as the Source Block.

In the Handler for the Nfc/NdefListener I selected (New Client Action) which looks like...

The Assignment is... 

GetTbltodoByToDoId.List.Current.tbltodos.NFCTagData = TextRecords.Current.Data

NFCTagData is my database field.  (I should probably say Aggregate, Entity, Attribute etc., but still getting used to the environment.  I've only used OutSystems for a week.

This is all for Android, by the way.  Testing with a Nexus 7 (2013).

Using the Android NFC Tools app, I wrote some text to my NFC Tag.

Using my OutSystems app, I read that text from the NFC Tag and it displays in my field.

I haven't tried writing yet, but reading seems to work well.

Hi guys! 


I uploaded a new oml sample, it has the READ,WRITE, READ/WRITE sample that is currently working for me. I hope this helps. ^u^


Kind regards,

Louise

Louise wrote:

Hi guys! 


I uploaded a new oml sample, it has the READ,WRITE, READ/WRITE sample that is currently working for me. I hope this helps. ^u^


Kind regards,

Louise


I tried it, i still can't read/write. When i read, nothing is displayed. When i write, it says i need to bring the card closer..

Do you think it could be the card type? I am working with MIFARE Classic cards..

Thanks in advance.

Hi Basma,


Hmmm... I think so. Have you tried scanning your MIFARE cards on NFC Tools first just to check if it can scan/read/write on your sticker/tag/card? I guess your device's NFC chip might not have the capabilities to read on MIFARE cards or this plugin doesn't have any features for MIFARE. :(


Kind regards,

Louise

Louise wrote:

Hi Basma,


Hmmm... I think so. Have you tried scanning your MIFARE cards on NFC Tools first just to check if it can scan/read/write on your sticker/tag/card? I guess your device's NFC chip might not have the capabilities to read on MIFARE cards or this plugin doesn't have any features for MIFARE. :(


Kind regards,

Louise

yes, i used a mifare reader app and it scans the card, i guess the plugin doesn't have the proper features... 



Did you try reading and writing with the Android "NFC Tools" application?

Davidk wrote:

Did you try reading and writing with the Android "NFC Tools" application?

I have and it works.. The thing is i am working on an app where the NFC scan is a functionality, so i can't use another app for the scan


Sorry... I wasn't suggesting you use NFC Tools... I just wanted to know if NFC Tools worked.  You'd mentioned that a companion app to your cards... the mifare app... worked... as it probably should... and NFC Tools works as well... so that's good.

I'm using a Nexus 7 (2013) and so I did a search for NFC info and this device.  I found this...

https://productforums.google.com/forum/#!topic/nexus/Ft9B16Q-2nQ;context-place=topicsearchin/nexus/authorid$3AAPn2wQctZMBru7yaN2qMyEqWNntv40Vs3SSU4weZRCdwHP1tguDIjurzssKfJAStdfSYoKeTIh89%7Csort:date%7Cspell:false

and this...

https://stackoverflow.com/questions/18762627/which-nfc-rfid-cards-are-detected-best-by-nexus-7-2013

I use NTAG203 sticker tags.

Louise's did suggest a compatibility issue.

Davidk wrote:

Sorry... I wasn't suggesting you use NFC Tools... I just wanted to know if NFC Tools worked.  You'd mentioned that a companion app to your cards... the mifare app... worked... as it probably should... and NFC Tools works as well... so that's good.

I'm using a Nexus 7 (2013) and so I did a search for NFC info and this device.  I found this...

https://productforums.google.com/forum/#!topic/nexus/Ft9B16Q-2nQ;context-place=topicsearchin/nexus/authorid$3AAPn2wQctZMBru7yaN2qMyEqWNntv40Vs3SSU4weZRCdwHP1tguDIjurzssKfJAStdfSYoKeTIh89%7Csort:date%7Cspell:false

and this...

https://stackoverflow.com/questions/18762627/which-nfc-rfid-cards-are-detected-best-by-nexus-7-2013

I use NTAG203 sticker tags.

Louise's did suggest a compatibility issue.

Hey David,


yes i guess the issue is after all one of compatibility.. Thanks for the links, i took a look at them they were quite helpful!