Hello yaza,
Welcome to our Microsoft Q&A platform!
The ZXing.Net
API may not perform well on Android. Try using ZXing.Net.Mobile
nuget instead, which is a mobile-specific. I've tested the function code with this package, it works as expected. The nuget requires the Xamarin.AndroidX.Legacy.Support.V4
dependency, please install the package for your project.
Best Regards,
Jarvan Zhang
If the response is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.