Skip to content

Conversation

@BraydenLangley
Copy link
Collaborator

Problem

  • iOS WKWebView camera would open in fullscreen native view when websites called getUserMedia()
  • Camera view would get stuck and not dismiss properly, leaving a black screen
  • No existing mechanism to prevent or properly clean up WKWebView camera access

Solution

  • Layer 1: JavaScript Polyfill (Injected Script)
  • Laye2: WebView Permission Blocking
  • Added our own react Camera Request Handler

Copy link
Collaborator

@jackielu3 jackielu3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a heads up but I'll be adding a lot more to the webview injection for my changes! I may move the entire thing into it's own separate file

@sirdeggen sirdeggen merged commit d618c10 into dev Aug 29, 2025
@BraydenLangley BraydenLangley deleted the fix/camera-access-view branch August 29, 2025 21:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants