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

setOnNdefDiscoveredListener callback is not invoked on main thread in iOS #11

Closed
manojdcoder opened this issue Dec 3, 2017 · 2 comments
Milestone

Comments

@manojdcoder
Copy link
Contributor

In iOS setOnNdefDiscoveredListener callback not seems to be invoked on main thread due to which updating UI elements / changeDetectorRef.detectChanges() in angular app doesn't work.

A workaround was using a Promise.resolve().then(()=>{}) inside callback, but fixing this in the plugin will make it parity with Android.

@EddyVerbruggen
Copy link
Owner

Perfect finding, and thanks for the hint!

I've also piggybacked a fix for iOS where certain encoded Ndef data would crash the app.

@EddyVerbruggen EddyVerbruggen added this to the 2.1.0 milestone Dec 8, 2017
@MaxiSonntag
Copy link

Not sure if it's just me but I currently had the same issue with Android. My workaraound was injecting NgZone to the component and using the run method for all UI relevant operations.

Not sure if I did something wrong or this issue still persists?

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

No branches or pull requests

3 participants