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: Can't see camera preview. #197

Closed
5 of 11 tasks
smaddionadv opened this issue Oct 9, 2024 · 1 comment
Closed
5 of 11 tasks

bug: Can't see camera preview. #197

smaddionadv opened this issue Oct 9, 2024 · 1 comment

Comments

@smaddionadv
Copy link

Plugin(s)

  • Barcode Scanning
  • Face Detection
  • Face Mesh Detection
  • Selfie Segmentation
  • Translation

Version

6.1.0

Platform(s)

  • Android
  • iOS
  • Web

Current behavior

  • I trigger the scanning
  • Scanning successfully starts
  • The camera preview is not present
  • If i put the phone in front of a qr code it scans correctly
  • The value returned is correct

Expected behavior

  • I trigger the scanning
  • The camera preview is visible
  • The scan i successful

Reproduction

Steps to reproduce

Other information

Can't share the complete code as is a work related project but if needed i can share specific parts if needed for debugging this issue

The project started as a React + Vite + TS then i added capacitor because the specs changed mid development.
Adding capacitor was successful and the app works great

I just can't see the camera preview
Tried all the steps mentioned in the docs, even the css rules but still the camera isn't shown.

This project uses TailwindCSS and NextUI
Theres no IONIC stuff in this.

In the now deprecated capacitor/barcode-scanner GHRepo it was mentioned something about dark mode bugging the interface, so i obviously tried without dark mode and nothing changes.

As previously mentioned, the scanner , scans perfectly.

If more context or stuff is needed i will gladly provide it.

Capacitor doctor

💊 Capacitor Doctor 💊

Latest Dependencies:

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

Installed Dependencies:

@capacitor/ios: not installed
@capacitor/cli: 6.1.2
@capacitor/core: 6.1.2
@capacitor/android: 6.1.2

[success] Android looking great! 👌

Before submitting

  • I have read and followed the bug report guidelines.
  • I have attached links to possibly related issues and discussions.
  • I understand that incomplete issues (e.g. without reproduction) are closed.
@robingenz
Copy link
Member

This is most likely a bug in your implementation and not a bug in the plugin. I have just tested the latest version and everything worked without any problems. For this reason, I am closing this issue. Feel free to create a discussion or book a consulting hour.

@robingenz robingenz closed this as not planned Won't fix, can't repro, duplicate, stale Oct 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants