NFC plugin

Post your completed addons to share with the community

Post » Tue Feb 10, 2015 4:55 am

armaldio wrote:If you have any special request or suggestions, please let me know ;)


It would be neat is this worked on BlackBerry mobiles, is that possible?
B
73
S
14
G
1
Posts: 152
Reputation: 5,026

Post » Tue Feb 10, 2015 10:07 am

Does the app have to be compiled with Crosswalk or is normal Cordova build enough? I saw that in your example you are building with Crosswalk...
Frosty Elk AB
www.frostyelk.se
Have no fear, We come in peace!
B
13
S
3
G
1
Posts: 106
Reputation: 1,169

Post » Tue Feb 10, 2015 12:51 pm

I cannot get my app to react to NFC at all. I have tested the TAG device with other NFC reader apps and they gimme back data properly.
I have followed your example, but the app doesnt respond with anything on NFC Tag contact.

Tried with both Crosswalk, Android builds. Same results, even added some extra permissions (NFC and BIND_NFC_SERVICE) in XDK.

What i try to do is to make the app react when it finds a TAG. Then print the content (NFC.getLastData) to a textbox.

Is there any certain Cordova version or Crosswalk version i need to use to make it work? Any tip would be helpful, thanks!
Frosty Elk AB
www.frostyelk.se
Have no fear, We come in peace!
B
13
S
3
G
1
Posts: 106
Reputation: 1,169

Post » Tue Feb 10, 2015 6:48 pm

@remyjay It should work on BB now. (wich BB do you use ?)

@frostyelk Sorry if it's not working for you :/
I will try to help you.

I'm building with crosswalk, i'll test with other now.
I made some research on NFC because you said you me you want to wake up an app when detecting NFC tag ?
I'm coding this now, please wait :)

Do you test with my example or with yours ?

Do you add in the NFC plugin in the external plugin tab (Plugins and permissions > Third party plugins) as I said it here ? :
armaldio wrote:TIP : Don't forget to add custom plugin into intel xdk

Plugin ID : com.chariotsolutions.nfc.plugin
Tick the box under
http://armaldio.xyz - Image - Join now our Discord Server ;) - https://discord.gg/0eLPLj96B4tUr1D3
B
56
S
16
G
1
Posts: 249
Reputation: 5,721

Post » Tue Feb 10, 2015 8:50 pm

Yes, i have added the plugin and ticked the box.

It is also stated in the build log that it has been loaded and compiled ok, so it´s not that....

I am more thinking that it could be that i have other programs that is set to react on NFC connections, and maybe that disturbs the NFC. So i will try and remove the other programs and see if that helps.

Also thinking that it could be the Cordova build version or maybe that i use the Stable version of Crosswalk. Did get a message that i should use version 10 instead of the current one.
Frosty Elk AB
www.frostyelk.se
Have no fear, We come in peace!
B
13
S
3
G
1
Posts: 106
Reputation: 1,169

Post » Tue Feb 10, 2015 10:26 pm

@frostyelk
Ok
Ok try and tell me :)
I use stable and it works
http://armaldio.xyz - Image - Join now our Discord Server ;) - https://discord.gg/0eLPLj96B4tUr1D3
B
56
S
16
G
1
Posts: 249
Reputation: 5,721

Post » Wed Feb 11, 2015 12:02 pm

armaldio Thanks I just downloaded and like it
B
252
S
39
G
15
Posts: 1,965
Reputation: 40,765

Post » Sun Feb 15, 2015 11:14 pm

Hey @frostyelk, You should redownload plugin because i added a function to wake the on nfc trigger.
Just look a the first post, all is explained ;)
http://armaldio.xyz - Image - Join now our Discord Server ;) - https://discord.gg/0eLPLj96B4tUr1D3
B
56
S
16
G
1
Posts: 249
Reputation: 5,721

Post » Mon Feb 16, 2015 1:10 pm

Thanks, ill give it a go!
Frosty Elk AB
www.frostyelk.se
Have no fear, We come in peace!
B
13
S
3
G
1
Posts: 106
Reputation: 1,169

Post » Wed Mar 04, 2015 8:08 pm

Hi again!
My awesome programmer debuged the plugin and it seems that it crashes if I use minify on export.
Can you please look into fixing that?

Apart from that i finally got your great plugin to read my NFC tags, thanks for a great plug, keep up the great work!
Frosty Elk AB
www.frostyelk.se
Have no fear, We come in peace!
B
13
S
3
G
1
Posts: 106
Reputation: 1,169

PreviousNext

Return to Completed Addons

Who is online

Users browsing this forum: No registered users and 3 guests