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

Scanner crashes when camera permission is denied #210

Open
MarianHristov92 opened this issue Dec 4, 2024 · 1 comment
Open

Scanner crashes when camera permission is denied #210

MarianHristov92 opened this issue Dec 4, 2024 · 1 comment

Comments

@MarianHristov92
Copy link

Steps to reproduce:

  1. Create a page with scanner:
              <zxing:CameraBarcodeReaderView
                  x:Name="barcodeReaderIOS"
                  IsDetecting="True"
                  IsVisible="{OnPlatform Android=false, iOS=true,  WinUI=true}"
                  IsTorchOn="False"
                  VerticalOptions="FillAndExpand"
                  BarcodesDetected="BarcodesDetectedIOSWindows" />
   </ContentView>
2. Decline the permission for camera 3. Restart the app 4. Crashes

Any suggestions how to prevent this ?

@mr5z
Copy link

mr5z commented Dec 7, 2024

Perhaps, detect the permission state before navigating to this screen?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants