feat(desktop): declare iOS mic/camera usage descriptions for getUserMedia (LC-136) #454
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/LC-136-ios-getusermedia-plist"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Add desktop/Info.ios.plist with NSMicrophoneUsageDescription and NSCameraUsageDescription. Tauri 2 merges this iOS-only overlay into the generated gen/apple Info.plist at build time, so it survives Xcode-project regeneration. iOS refuses to show the WKWebView getUserMedia permission prompt (silently denying capture) unless the app declares a usage-description string per requested device; with these two keys the 1:1 voice/video WebRTC call path gets exactly one OS-level prompt on first capture and the grant persists across launches.
No code-side permission hook is needed on iOS (unlike the Linux WebKit2GTK and Windows WebView2 paths): the existing no-op install_media_permission_handler fallback covers the iOS target. Updated the stale comment in src/main.rs to reflect that iOS is handled via Info.ios.plist rather than a per-platform code hook.
#LC-136