sabitertan / BlazorBarcodeScanner

Barcode Scanner component for Blazor using zxing-js Interop
MIT License
92 stars 37 forks source link

StartCameraAutomatically crashes if permission not granted #24

Closed Hackmodford closed 2 years ago

Hackmodford commented 2 years ago

I expect this just needs to be in a try/catch block in the OnInitializedAsync method.

Going the extra mile, it would be nice to have a property that I can use to check if the permission is granted to modify the UI accordingly.

sabitertan commented 2 years ago

f66bc6dcd85eb640a8ccd7328bb1ed8fe280d2b9