chariotsolutions / phonegap-nfc

PhoneGap NFC Plugin
MIT License
706 stars 559 forks source link

nfc.enabled() Success callback is never called. #178

Closed zachdj closed 9 years ago

zachdj commented 9 years ago

When using the nfc.enabled() function, the failure callback will be called if NFC is disabled. However, if NFC is enabled, the success callback is not called.

don commented 9 years ago

This was fixed in 9b8ccbd91a6afddfd3b647392c602d51757705c8 but hasn't been pushed to plugins.cordova.io. Can you try installing the plugin from github until I push another release?

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

Thanks! I'll try that. I appreciate the quick response.

On Wed, Mar 25, 2015 at 12:38 PM, Don Coleman notifications@github.com wrote:

This was fixed in 9b8ccbd https://github.com/chariotsolutions/phonegap-nfc/commit/9b8ccbd91a6afddfd3b647392c602d51757705c8 but hasn't been pushed to plugins.cordova.io. Can you try installing the plugin from github until I push another release?

cordova plugin rm com.chariotsolutions.nfc.plugin cordova plugin add https://github.com/chariotsolutions/phonegap-nfc

— Reply to this email directly or view it on GitHub https://github.com/chariotsolutions/phonegap-nfc/issues/178#issuecomment-86109853 .

didlich commented 9 years ago

@don thanks for the fix, I added this PR for enabled() some time ago, after that I updated to new versions of the NFC plugin, but saw erronous behavior in my app, I'm polling the enable() interface to show a message when the user should switch NFC on, when user disables the NFC and enables the NFC again the message did not disappear then I saw that in version 0.6.1 the callback was never called, so I use the current master branch which fixed the erronous behavior of my app

I hope for a quick release of a new version

don commented 9 years ago

Duplicate of #169. Fixed in 0.6.2.