Camera preview is missing while using torch on web view

We have QR-scanner feature implemented on web view (WKWebView). If it's dark we want to light our QR-code using flashlight in iPhone. In general, this feature works, but without flashlight.

But have that problems:

  1. If we turn on torch then camera preview disappears.
  2. If turn off torch then camera preview appears.

Do you have any idea why it's so? And how can we sort it out? Thanks

Replies

Did you find a fix for this issue? I have the exact same requirement and I too am facing the same issue 😕

HI, any update on this issue? Still can't figure out how turn the camera and flashlight in the same time using WKWebview

  • hello, unfortunately, no We rethink that feature.

Add a Comment