camera-preview icon indicating copy to clipboard operation
camera-preview copied to clipboard

Camera preview on iOS black screen / Android works fine

Open gamanuel opened this issue 4 years ago • 3 comments

When I start the camera on iOS it shows a black screen but if I take the picture it shows the picture successfully. On Android all work as expected

WhatsApp Image 2021-06-26 at 16 23 31-2 WhatsApp Image 2021-06-26 at 16 23 31

Iphone 11 pro max Last iOS

gamanuel avatar Jun 26 '21 19:06 gamanuel

I found that the problem was when i had dark mode enable on ios, my solution was to remove or comment all the styles for the dark mode from ionic variables.scss

gamanuel avatar Aug 08 '21 22:08 gamanuel

@gamanuel is correct, Ionic's dark mode needs some workarounds. An improvement to the documentation to cover this would be much appreciated!

pbowyer avatar Dec 16 '21 22:12 pbowyer

I found that the problem was when i had dark mode enable on ios, my solution was to remove or comment all the styles for the dark mode from ionic variables.scss

I already comment all the styles for the dark mode in variables.scss, but still face this problem. @pbowyer @gamanuel ,there have any other solution on this?

hanani14 avatar Jan 04 '22 08:01 hanani14