NFC plugin

Post your completed addons to share with the community

Post » Thu May 21, 2015 2:03 pm

@over95 Sorry for late reply
I use this code with arduino to get it working :
http://codeviewer.org/view/code:5131

And from the phone i send my datas separated by semicolons like
Code: Select all
;myemailadress;myPassword;


@remy-jay
Please give me the payload you get from the NFC.getlastdata
http://armaldio.xyz - Image - Join now our Discord Server ;) - https://discord.gg/0eLPLj96B4tUr1D3
B
57
S
16
G
1
Posts: 249
Reputation: 5,756

Post » Thu May 21, 2015 7:35 pm

@ armalido I believe it's in NDEF format.
I wondering what commands in Construct2 that I can use to parse out the payload...perhaps a toString() command or something to convert the payload's bytes to text?

Will try to get the exact payload later today when I have access to it
B
73
S
14
G
1
Posts: 152
Reputation: 5,026

Post » Fri May 22, 2015 11:35 am

Err, @armaldio :)
B
73
S
14
G
1
Posts: 152
Reputation: 5,026

Post » Thu Aug 04, 2016 11:16 am

Message: vargazso can only post plain text URLS until they have 500 rep. 3 URLS modified. Why?
Dear armaldio,

I've tried Your plugin and it seems, that I need to scan the same tag twice to get the datas. For the first scan it beeps only, for the 2nd the scan the read is successfull. Have You meet this problem in the past? Or how can I get the datas for the 1st scan?

Many thanks in advance,
vargazso


armaldio wrote:Hello all,

I just developped a plugin to be able to communicate with NFC devices like tags or mobile.

https://github.com/armaldio/c2-nfc You can download it here

Tell me if anything gone wrong :) I need feedback to developp the plugin better

Donate if you want to support me !

Image

https://github.com/armaldio/c2-nfc/commits/master List of realeases

Now you can wake an app when tag is read (see https://github.com/armaldio/c2-nfc/blob/master/NFC_fullExample.capx this example)
You have to write once on the tag to initialize that app to launch and you are ready.
The only thing you have to know is the package name of the app.

TIP : Don't forget to add custom plugin into intel xdk

Plugin ID : com.chariotsolutions.nfc.plugin
Tick the box under

I accept pull requests.
Add issues on github please.
B
19
S
4
Posts: 32
Reputation: 1,044

Post » Sun Aug 07, 2016 9:22 am

Hello @vargazso,

Do you have this problem with the example I give?
What is the model of your phone?
http://armaldio.xyz - Image - Join now our Discord Server ;) - https://discord.gg/0eLPLj96B4tUr1D3
B
57
S
16
G
1
Posts: 249
Reputation: 5,756

Post » Wed Aug 10, 2016 8:50 am

Hello armaldio,

yes, unfortunately there is the same error with the NFC_fullExample, You provided.
Pressing READ, I need to touch the tag twice to read the data from it.
Removing triggers, then pressing READ, also needs to read twice. (its beeping for the 1st time also, but no data )

I have a NEXUS 5 phone.
Using the built in NFC reading app, my phone immediately showing, what is in the tag. The problem is only with the compiled apps.

I would be grateful if You could give me some hint, what am I doing wrong.

thanks in advance,
vargazso
B
19
S
4
Posts: 32
Reputation: 1,044

Post » Fri Aug 12, 2016 8:09 am

Hello @vergazso,

I'm sorry for your problem,

I'm currently away from home, so I can't have a look a your problem, I come home in around 5 or 6 days, and then I'll look to your problem.
Thanks for your patience. By the way I had the same problem :

I had to read twice with my Xperia Sp while I only hate to read once with my note 4. Very weird.
I will investigate. Feel free to also contact me on other messaging apps.
http://armaldio.xyz - Image - Join now our Discord Server ;) - https://discord.gg/0eLPLj96B4tUr1D3
B
57
S
16
G
1
Posts: 249
Reputation: 5,756

Post » Wed Aug 17, 2016 8:12 am

Message: vargazso can only post plain text URLS until they have 500 rep. 2 URLS modified. Why?
Hello @armaldio,

many thanks if You can investigate this issue.
I've tried to find stg on the topic. But I dont know how to solve.

http://stackoverflow.com/questions/2585 ... -tag-twice
http://stackoverflow.com/questions/1708 ... -tag-twice

Please let me know if You have anything on this issue.

many thanks in advance,
vargazso
B
19
S
4
Posts: 32
Reputation: 1,044

Post » Wed Aug 17, 2016 8:13 am

@armaldio

sorry I cant paste links. So I searched in google with the words: android nfc twice
B
19
S
4
Posts: 32
Reputation: 1,044

Post » Wed Jul 12, 2017 2:32 pm

Hi @armaldio - I can't get this plugin to work through cordova export and phonegap build.

I have used the examples of capx files here, but the app doesn't respond to the NFC tag at all. Has anything changed in the last year that would cause the plugin to stop working?

Other NFC apps from the Play store do read the tag.
I am using a Samsung Galaxy S5

Do I need to add anything to the config.xml ??

Any help gratefully received

Thanks
B
3
Posts: 7
Reputation: 189

PreviousNext

Return to Completed Addons

Who is online

Users browsing this forum: SR3d and 9 guests