I have a flutter app which uses the phone's camera. While debugging I can successfully use the camera but when using a release apk I have built I get a blank screen. I have added the permissions to the manifest and also the app requests for user to grant permission too.
Here is how it looks in debug mode
Here is how it looks when I install app-release.apk
What could be the issue?
CodePudding user response:
I think you need
flutter clean
(I'd consider it a bug that this is necessary, but I'm encountering it as well) and
flutter build apk --release
CodePudding user response:
Did you ask the user for permission? If not the system will block all camera requests