Repository: flutter
Issue: Camera_web not working in WKWebview in an iOS app
Labels: platform-web,p: camera,package,P3,team-web,triaged-web

I am trying to see if camera web plugin works inside a webview in Android/iOS apps.
Loading the following URL in the webview: https://dit-vgv-camera-test.web.app/
Its working as expected in the Android app.
In iOS demo app, it asks for camera and microphone permission on app level, then on loading the webpage it asks for permission from the web app, and on allowing the web app loads.
But on selecting a camera on the device it give the Error as shown in the attached screenshot below.

Also I tried opening the website on Safari browser on my iPhone and it opens the camera as expected.
And in the same app tried opening a WebRTC sample website in the iOS webview and its working as expected so I know its not a permission from the app side.

## Steps to Reproduce

Open this webapp inside an iOS WKWebView: https://dit-vgv-camera-test.web.app/

**Expected results:** Camera web plugin should work in iOS webview

**Actual results:** Getting a NotAllowedError and camera is not opening


<details>
  <summary>Logs</summary>

iPhone app logs
2022-08-30 11:35:16.563371+0530 WebViewDemoTest[6760:44480140] WF: === Starting WebFilter logging for process WebViewDemoTest
2022-08-30 11:35:16.563475+0530 WebViewDemoTest[6760:44480140] WF: _userSettingsForUser mobile: {
    filterBlacklist =     (
    );
    filterWhitelist =     (
    );
    restrictWeb = 1;
    useContentFilter = 0;
    useContentFilterOverrides = 0;
    whitelistEnabled = 0;
}
2022-08-30 11:35:16.563569+0530 WebViewDemoTest[6760:44480140] WF: _WebFilterIsActive returning: NO
2022-08-30 11:35:31.506331+0530 WebViewDemoTest[6760:44480140] RealtimeMediaSource::selectSettings failed constraint 10

RealtimeMediaSource::selectSettings failed constraint 10
2022-08-30 11:35:31.705188+0530 WebViewDemoTest[6760:44480140] RealtimeMediaSource::selectSettings failed constraint 10

RealtimeMediaSource::selectSettings failed constraint 10
2022-08-30 11:35:41.959309+0530 WebViewDemoTest[6760:44480140] RealtimeMediaSource::selectSettings failed constraint 10

RealtimeMediaSource::selectSettings failed constraint 10
2022-08-30 11:35:51.260686+0530 WebViewDemoTest[6760:44480140] Received memory pressure event 2 vm pressure 0

Received memory pressure event 2 vm pressure 0
2022-08-30 11:35:56.558035+0530 WebViewDemoTest[6760:44480728] [XPC] Handle connection with error: Connection interrupted
2022-08-30 11:35:59.594865+0530 WebViewDemoTest[6760:44480140] RealtimeMediaSource::selectSettings failed constraint 10

RealtimeMediaSource::selectSettings failed constraint 10
2022-08-30 11:36:05.328042+0530 WebViewDemoTest[6760:44480140] Received memory pressure event 1 vm pressure 0

Received memory pressure event 1 vm pressure 0
</details>


![WhatsApp Image 2022-08-30 at 11 40 27 AM](https://user-images.githubusercontent.com/84772793/187362694-46057ac9-cd4d-4f51-9a40-2dfeb503dae5.jpeg)
![WhatsApp Image 2022-08-30 at 11 40 25 AM](https://user-images.githubusercontent.com/84772793/187362707-778a069b-b74d-4c20-86d7-f4c42fcf90b6.jpeg)