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

Use proper event handling for activity result on Android #28

Merged

Conversation

mikaelkalt
Copy link
Contributor

We've realised that when using the fingerprint plugin in combination with different plugins on the latest Android 8 that it somehow interferes with the Intent handling. We were using the fingerprint plugin in combination with your barcode plugin and on Android 8 the barcode result was never returned because the activityResult event was never thrown. When I was digging in your code I've realised that for some reason you're not using the event handling to get the activityResult instead you're somehow overwriting the method on the main foreground activity. I guess this caused the event propagation to fail. It seems like using the event handling fixes that problem tough I can't really explain why this only happens on Android 8.

@EddyVerbruggen
Copy link
Owner

Hmm.. 🤔good question indeed. Your PR looks great, I'll need some time to test on Android 7 and 8.

@EddyVerbruggen EddyVerbruggen merged commit 393ef2d into EddyVerbruggen:master Mar 19, 2018
@EddyVerbruggen EddyVerbruggen added this to the 6.0.3 milestone Mar 20, 2018
@EddyVerbruggen
Copy link
Owner

Yep, works perfectly fine. Thanks a lot, @mikaelkalt!

@mikaelkalt
Copy link
Contributor Author

You're welcome! Thanks for merging it that fast 👍

@mikaelkalt mikaelkalt deleted the fix/activityResultHandling branch March 20, 2018 07:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants