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

[Bug]: @capacitor/camera - Console (F12) error (undefined) clicking on the camera icon when still loading the camera or not alowing the permission yet. #2064

Open
1 of 3 tasks
Aareonick opened this issue Mar 19, 2024 · 3 comments
Labels
plugin: camera type: bug A confirmed bug report

Comments

@Aareonick
Copy link

Aareonick commented Mar 19, 2024

Capacitor Version

Latest Dependencies:

@capacitor/cli: 5.7.2
@capacitor/core: 5.7.2
@capacitor/android: 5.7.2
@capacitor/ios: 5.7.2

Installed Dependencies:

@capacitor/cli: 5.5.1
@capacitor/android: 5.5.1
@capacitor/core: 5.5.1
@capacitor/ios: 5.5.1

Other API Details

npm v10.2.4
node v20.11.1

"@capacitor/android": "5.5.1",
"@capacitor/browser": "5.1.0",
"@capacitor/camera": "5.0.7",
"@capacitor/core": "5.5.1",
"@capacitor/device": "5.0.6",
"@capacitor/filesystem": "5.1.4",
"@capacitor/ios": "5.5.1",
"@capacitor/network": "5.0.6",
"@capacitor/splash-screen": "5.0.6",
"@capacitor/status-bar": "5.0.6",
"@capacitor/toast": "5.0.6",
"@capawesome/capacitor-app-update": "5.0.1",
"@capawesome/capacitor-photo-editor": "5.0.0",
"@capgo/capacitor-native-biometric": "5.1.0",
"@ionic/pwa-elements": "3.2.2",

Platforms Affected

  • iOS
  • Android
  • Web

Current Behavior

Issues:

  • Console (F12) error (undefined) clicking on the camera icon when still loading the camera.

Camera_state
(Camera before camera is loaded/visible.)

Error
(Error)

  • Console (F12) error (undefined) clicking on the camera icon when not alowing the permission yet.

Camera_state
(Camera before permission is not allowed yet.)

Error_2
(Error)

Expected Behavior

Unable to click the camera (or other buttons when resulting in a error) when the camera is still loading or the permission is not allowed yet. Also possible to hide the buttons or give a indication with a message (Loading... / Waiting for camera permission...).

Project Reproduction

test-case.zip
(Newest versions used with reproduction. Use 'npm i' for installing the packages and 'ng serve' to run the application.)

Additional Information

The hardware/software used to reproduce the problem:

Surface Book 3 (Slow system, Loading takes a longer time)
Windows 11 Pro

@Aareonick
Copy link
Author

Reproduction added.

@markemer markemer transferred this issue from ionic-team/capacitor Mar 22, 2024
@ionitron-bot ionitron-bot bot removed the triage label Mar 22, 2024
@markemer
Copy link
Contributor

markemer commented Mar 22, 2024

Transferring to @ionic-team/capacitor-plugins

Copy link

ionitron-bot bot commented Apr 9, 2024

This issue has been labeled as type: bug. This label is added to issues that that have been reproduced and are being tracked in our internal issue tracker.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
plugin: camera type: bug A confirmed bug report
Projects
None yet
Development

No branches or pull requests

4 participants