Skip to content
This repository has been archived by the owner on Oct 10, 2024. It is now read-only.

On the emulator or Device the camera starts, but is not visible, there is a white background on top #280

Open
alysterlendira opened this issue Aug 2, 2023 · 5 comments

Comments

@alysterlendira
Copy link

Describe the bug
On the emulator or Device the camera starts, but is not visible, there is a white background on top

Screenshots
image

Version
Ionic v7
Vuejs 3

Smartphone (please complete the following information):

  • Device: Samsung A51S
  • OS: Android 13

Additional context
Add any other context about the problem here.

@JanMisker
Copy link

Did you make all DOM elements have a transparent background?

@muuvmuuv
Copy link

muuvmuuv commented Aug 2, 2023

Same here, iOS and browser works

@alysterlendira
Copy link
Author

alysterlendira commented Aug 3, 2023

the development team should add a css class when running the scan to add a z-index.
works fine in browser

@JanMisker
Copy link

The browser implementation is (very) different from the mobile devices so it's not a good comparision. On mobile the camera preview is behind the webview so make sure that all dom elements have transparent background, including html and body. Use chrome or safari inspector to connect to the device and traverse the dom tree.

@nmifzal
Copy link

nmifzal commented Jan 28, 2024

The browser implementation is (very) different from the mobile devices so it's not a good comparision. On mobile the camera preview is behind the webview so make sure that all dom elements have transparent background, including html and body. Use chrome or safari inspector to connect to the device and traverse the dom tree.

Just added html, body { background-color: transparent !important; } and it works.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants