Open Templum opened 8 years ago
Have you declared the webcam
device capability in your app manifest?
Actual this was the very first thing i did, but my test device had no camera connected. But this is something which should ne cause an exception right away
@Redth Is there any way we can check for the camera in a XPlat way? My store app is getting rejected on windows 10 and xbox because the scanner page shows a white background because there is no camera.
I, obviously, can check on UWP, but it'd be much better for my use case if it were possible to check in the PCL project (Think cheap android tablets without a camera). My app doesn't require this feature to function.
(Since this seems to be related to this issue)
Using the latest version 2.0.4.46, I receive the following exception.
Message : "Object reference not set to an instance of an object." Source : "ZXingNetMobile" StackTrace : " at ZXing.Mobile.ZXingScannerControl.d13.MoveNext()
--- End of stack trace from previous location where exception was thrown ---System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at ZXing.Mobile.ScanPage.d 73.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<>c.b__6_0(Object state)
at System.Threading.WinRTSynchronizationContext.Invoker.InvokeCore()"
I used the libary as shown in usages code and also tried the shown version in the uwp sample.