Does Not Run in iOS?
mark-sheldon opened this issue · comments
Does not seem to run in iOS, but runs fine in Android. Do you anticipate a fix for the issue any time soon? Test Code:
private async void BtnGoToScanner_Clicked(object sender, EventArgs e)
{
try
{
var overlay = new ZXingDefaultOverlay
{
TopText = "QR code will be scanned automatically",
BottomText = "Align the QR code within the frame"
};
MobileBarcodeScanningOptions options = new MobileBarcodeScanningOptions();
options.AutoRotate = true;
options.TryHarder = false;
options.UseNativeScanning = true;
ZXingScannerPage scanPage = new ZXingScannerPage(options, overlay);
await Navigation.PushAsync(scanPage);
scanPage.OnScanResult += async (result) =>
{
await Navigation.PopAsync();
await DisplayAlert("Scanned Value", result.Text, "OK");
};
}
catch
{
}
}
@mark-sheldon which iPhone model are you testing with?
Thanks so much for your help.
I'm testing on a 9th Generation iPad, iOS version 15.5, 64GB Storage, with
47.9GB available.
Building on Windows 11, Visual Studio 2022, Xamarin Forms version
5.0.0.2401 and ZXing 2.4.1. Build server is macincloud, with the most
current versions of all the Mac components preinstalled.
Thank you again.
m.
Mark Sheldon Web Applications
Mark Sheldon
ASP.Net Full Stack Developer
***@***.***
Mobile: (916)335-4621
http://www.marksheldon.net
- CAPCE Services <https://marksheldon.net/ExcelToCapceXml>
- Internet Database Systems <https://marksheldon.net/Database>
- Learning Management Systems
<https://marksheldon.net/LearningManagement>
Mark Sheldon Web Applications • 4009 Gunnar Drive • Roseville • CA • 95747
• USA
This message is confidential. It may also be privileged or otherwise
protected by work product immunity or other legal rules. If you have
received it by mistake, please let us know by e-mail reply and delete it
from your system; you may not copy this message or disclose its contents to
anyone. Please send us by fax any message containing deadlines as incoming
e-mails are not screened for response deadlines. The integrity and security
of this message cannot be guaranteed on the Internet.
…On Wed, May 25, 2022 at 10:21 AM g0dpain ***@***.***> wrote:
@mark-sheldon <https://github.com/mark-sheldon> which iPhone model are
you testing with?
—
Reply to this email directly, view it on GitHub
<#1045 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AI44BJX3DZNU5SHULZW4ZFLVLZOQ3ANCNFSM5W2X6DJA>
.
You are receiving this because you were mentioned.Message ID: <Redth/ZXing
.***@***.***>
Just added the NuGet packages
https://www.nuget.org/packages/g0dpain.ZXing.Net.Mobile/
https://www.nuget.org/packages/g0dpain.ZXing.Net.Mobile.Forms/
Those arent tested for older iPhone models but the scan works for me now perfectly on iPhone 12 and iPhone 13 Pro.
You can find it under the preview section