jhoogstraat / fast_barcode_scanner

A flutter plugin that allows your users to scan any type of barcode on iOS and Android
41 stars 53 forks source link

Camera doesn't work on Android when first built. #72

Open ahmetkrakaya opened 2 years ago

ahmetkrakaya commented 2 years ago

When I build the application for Android and run it for the first time, it asks for camera permission, but the camera does not open. Instead it stays on a black screen. But when I close the program and open it, there is no problem anymore.

jaumard commented 2 years ago

Yes same here :)

jasirguzman123 commented 1 year ago

same here, did you find a solution?

adpg commented 1 year ago

Same here. My app uses the camera for barcode scanning as well as for taking pictures, and I noticed that if camera permission is granted when taking a picture before using the scanner function, the camera preview works as expected at first barcode scanning use. Maybe the barcode scanner function, when having to invoke the camera permission dialogue, doesn't receive the (granted) permission in time to correctly open a preview image?