chariotsolutions / phonegap-nfc

PhoneGap NFC Plugin
MIT License
706 stars 559 forks source link

nfc.enabled() not firing when NFC is enabled #169

Closed Faustxx closed 9 years ago

Faustxx commented 9 years ago

First of all, thanks for your great work.

My problem is that nfc.enabled() is not working correctly for me.

I'm getting NO_NFC in devices without NFC, and NFC_DISABLED when this feature is manually disabled in the device. This is working as intended.

But neither of the callbacks (success/failure) are being called at all when NFC is enabled on the device.

I can read NFC tags without problem, I just don't get the NFC_OK message I should be getting.

I'm using: Cordova 4.2.0 NFC 0.6.1 (retrieved with this command: cordova plugin add com.chariotsolutions.nfc.plugin") Sony Xperia M

don commented 9 years ago

I'll take a look at this soon

don commented 9 years ago

Install the plugin from github until 0.6.2 is released

cordova plugin add https://github.com/chariotsolutions/phonegap-nfc
Faustxx commented 9 years ago

It is working now.

Thanks a lot!