chariotsolutions / phonegap-nfc

PhoneGap NFC Plugin
MIT License
703 stars 547 forks source link

not working with cordova? #13

Closed slav123 closed 12 years ago

slav123 commented 12 years ago

it's any chance to creating working example with cordova?

don commented 12 years ago

We plan to have an update for PhoneGap 1.6.0 soon

slav123 commented 12 years ago

This will be great :) I can't wait

don commented 12 years ago

I have some of this working on branches with PhoneGap 1.6.0

plugin - https://github.com/don/phonegap-nfc/tree/cordova reader example - https://github.com/don/phonegap-nfc-reader/tree/cordova-1.6 writer example - https://github.com/don/phonegap-nfc-writer/tree/cordova-1.6

I still need to clean up the implementation and test peer-to-peer, but this should work if you want to check it out.

giorgio83 commented 12 years ago

Hi Don, Greetings from Spain, I'm trying to test your plugin, I downloaded the demo project to test reader but all phones I've tried gives me the same error, thought it was because some had not nfc phones, but the latest tests I have done on a galaxy S 2 and S xperio sony if they bring this technology but the result has been the same, the application installs fine but when running out a message that puts forcing the closure of the following: the application NFC Reader Demo (com.chariotsolutions.nfc.demo.reader process) has stopped unexpectedly. Please try again. You know it may be because this error?

don commented 12 years ago

If you are running Android 4.0 this sounds like issue #12

Try running this fork https://github.com/don/phonegap-nfc-reader/tree/cordova-1.6

Hopefully I'll have a new version released next week.

giorgio83 commented 12 years ago

Hi Don, thanks for the quick response, I downloaded your new version and so far I've only tested with the android sdk emulators from netbeans, and they run the same error, I tested with version 4.0.3 and the android 2.3.3,'ll try it again with the actual phone. I must say that I try the phones are galaxy S 2 and S sony ericson xperia with nfc integrated, all have android 2.3 it can make it fail?. Moreover also I try it with other phones that have NFC but not integrated, the application should run anyway, though I can not read anything right?

Thank you and hope you can help me.

don commented 12 years ago

I avoid the android emulators, especially for NFC.

I did confirm that the nfc-reader-demo crashes on device running on a device without NFC. This is a bug. Opened Issue #14.

don commented 12 years ago

phonegap-nfc-0.3.0 works with Cordova. Tested with PhoneGap-1.6.1.

Read and write work. Had some issues with P2P on my ICS test phones.