Closed chrismcb closed 8 years ago
Going to need a lot more info here....
async void CallScanner(object sender, EventArgs e)
{
var scanPage = new ZXingScannerPage();
Unhandled Exception:
System.MissingMethodException: Method 'Element.set_AutomationId' not found.
Using the https://components.xamarin.com/gettingstarted/zxing.net.mobile.forms page example:
var scanPage = new ZXingScannerPage ();
scanPage.OnScanResult += (result) => {
// Stop scanning
scanPage.IsScanning = false;
// Pop the page and show the result
Device.BeginInvokeOnMainThread (() => {
Navigation.PopAsync ();
DisplayAlert("Scanned Barcode", result.Text, "OK");
});
};
// Navigate to our scanner page
await Navigation.PushAsync (scanPage);
I found same problem with @alexsandro-xpt.
The exception raised after this statement:
await Navigation.PushAsync (scanPage);
Tested on this device:
same issue for me also.
I forget the XF implementantion and call the native UI and Scanner Engine, it's mutch more responsive.
Same here, any info about this issue?
have the same problem, any news?
Same issue here
2 months ago there is no issue on my app but now i am getting that issue.
Android throws an Object reference not set to an instance of an object error when you try to open ZXingScannerPage.
I verified this with the sample using Nuget packages. It works with 2.0.3.1 but crashes with 2.0.4.17+ I was unable to get the sources to build properly to track it down any further