Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Notify Cordova on Successful Tag Write #408

Merged

Conversation

H0schi
Copy link
Contributor

@H0schi H0schi commented May 14, 2020

Hi!

Thank you for this library, it works really well so far.
When using the nfc.write method on an iOS device, I expected the [onSuccess] function to be called after a successful write. This does not seem to be the case in the newest version of this library and I assume that it was not intended to be this way. In an error case however, the Plugin is provided with an error message. Looking into the code I noticed that the session is closed and the callbackId is removed before writing any success message, so the Plugin part is never notified about a successful write.

In this pull request I send an empty CDVPluginResult on a successful write. Let me know if there if there is anything else you want me to or provide, or if maybe I just misunderstood the usage of nfc.write.

@don don merged commit b9e6032 into chariotsolutions:master Jun 18, 2020
@don
Copy link
Member

don commented Jun 18, 2020

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants