openfoodfacts / smooth-app

🤳🥫 The new Open Food Facts mobile application for Android and iOS, crafted with Flutter and Dart
https://world.openfoodfacts.org/open-food-facts-mobile-app?utm_source=off&utf_medium=web&utm_campaign=github-repo
Apache License 2.0
852 stars 282 forks source link

[Bug] Camera never opens #4150

Open OdinVex opened 1 year ago

OdinVex commented 1 year ago

What

Camera never opens.

Steps to reproduce the behavior

  1. Attempting to add a product image
  2. Choose Camera for Image Source
  3. Nothing happens ("Choose image source" closes, nothing else)

Expected behavior

Either an in-app camera access or external camera app (default) should be opened for use.

Smartphone model

Additional context

I suspect it is because I'm using OpenCamera (net.sourceforge.opencamera). OnePlus's default junk ROM customizations to Google's Camera makes it entirely uncomfortable to use. Considering a new phone because of it.

monsieurtanuki commented 1 year ago

Hi @OdinVex! The normal behavior is to have the system open the standard camera. Which does not seem to work on your device. Do you manage to scan barcodes? Have you tried with the Gallery?

g123k commented 1 year ago

The camera app we use for taking photos is totally independent from our code and I'm pretty sure that the problem is on your device. On our hand, we simply ask the system to open the default app.

OdinVex commented 1 year ago

Hi @OdinVex! The normal behavior is to have the system open the standard camera. Which does not seem to work on your device. Do you manage to scan barcodes? Have you tried with the Gallery?

Gallery works, I can also scan barcodes (default app-open view).

The camera app we use for taking photos is totally independent from our code and I'm pretty sure that the problem is on your device. On our hand, we simply ask the system to open the default app.

I don't have anything limiting access to the camera for OFF, I've specifically allowed it.

Edit: I wonder if the method of specifying default app means a hard-coded value (either in app or Android?) that specifies the Google Camera app. I use Open Camera (collaborative foss project, rather known) as a safer alternative to OnePlus's modified Google Camera.

teolemon commented 1 year ago

@raphael0202 has a oneplus, for the record

teolemon commented 1 year ago

@OdinVex is that still an issue ?

OdinVex commented 1 year ago

@OdinVex is that still an issue ?

It is. I gave up attempting to fix it, I'm capable of development and programming nearly any chips and environments out there, but I despise Android's development environment to the point I'd rather type information in and simply attach photos from now on.