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

getSupportedFlashModes returns array empty in Android 14 SDK 34 #345

Open
danielcollione opened this issue Sep 24, 2024 · 0 comments
Open

Comments

@danielcollione
Copy link

danielcollione commented Sep 24, 2024

In our project we found a bug that when starting the camera in its rear mode and using the getSupportedFlashModes method we received an array of all available values: off, auto, on, and torch.
When using the flip() method to access the front camera and using flip() again to return to the rear, using the method again the array comes empty.
And if I try to use the setFlashMode method, the application fails even though the cell phone initially supports Flash.
We performed the test on a physical Android 14 device.

I would like to know if this is really a bug or is there any recommendation for using the following plugin?

Versions:

  • Android 14 (SDK 34)
  • Capacitor 5
  • Ionic/Angular 7
  • CameraPreview: 5
  • Angular 16
  • Model: Samsung A54
  • ChromeVersion: 128.0.6613.147
  • Gradle: 8.7

image
image

@danielcollione danielcollione changed the title getSupportedFlashModes returns null in Android 14 SDK 34 getSupportedFlashModes returns array empty in Android 14 SDK 34 Sep 24, 2024
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

1 participant