Closed mletynski closed 11 years ago
https://github.com/don/phonegap-nfc-reader/ is on cordova-2.5.0 and could use an update. I was planning on waiting until phonegap-3.0 next month.
What problems are you seeing on the Galaxy S4? Are you getting a stack trace?
I don't have an access to this device. It's a sales guy phone, so im shooting. He just don't see any action while scanning a tag (i don't know which tag). In readme its written thay you recommend cordova 2.8.0 so i need to try this.
I'll see if I can update the examples this week.
Check the type of the tag he's scanning. I don't think the Galaxy S4 will read Mifare Classic tags since it uses the Broadcom chipset.
Have the sales guy install NFC Tag Info by NXP https://play.google.com/store/apps/details?id=com.nxp.taginfolite He can scan the tag and email you the results. If it's mifareclassic, you'll only see the UID, not the data.
Thanks Don for hints i will check those points with him.
@mletynski might be no help but I use phonegap-nfc in "NFC Ring" available on the play store, might be a useful reference point for you https://github.com/mclear/my/blob/master/platforms/android/assets/www/js/index.js is the source where I handle reads
@don did you get my email?
@don Yes it's a Mifare Classic tag. But shouldn't this NFC Reader show uuid then ?
The current version of phonegap-nfc-reader on a Nexus 4 shows the UUID when scanning a MifareClassic tag.
This is because the code has addTagDiscoveredListener
. The addNdefListener
will not find MifareClassic tags on the Nexus 4 (because of the Broadcom chipset.)
I'm not sure of the behavior on the Galaxy S4. I'd see what NFC Tag Info or some other native reader does. Also, ensure the sales guy has NFC enabled on the phone.
phonegap-nfc-reader is updated on the cordova-cli branch to use cordova cli and the latest phonegap-nfc
https://github.com/don/phonegap-nfc-reader/tree/cordova-cli
The main repo will be updated after 3.0 and when plugin.xml support is in place for BB10 and WP8
Hi. Is it possible that you will update your examples to current version of phonegap-nfc and cordova ? Somehow this example does not work with Galaxy 4, maybe its connected with old cordova/phonegap-nfc version.