Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WebView RequestMediaCapturePermission #17431

Closed
tekmun opened this issue Sep 16, 2023 · 3 comments
Closed

WebView RequestMediaCapturePermission #17431

tekmun opened this issue Sep 16, 2023 · 3 comments
Labels
area/controls 🎮 Label, Button, CheckBox, Slider, Stepper, Switch, Picker, Entry, Editor control-webview platform/iOS 🍎 platform/macOS 🍏 macOS / Mac Catalyst t/bug Something isn't working
Milestone

Comments

@tekmun
Copy link

tekmun commented Sep 16, 2023

Description

When using WebRTC, the RequestMediaCapturePermission function is not called when the app asks permission to use camera (and microphone).

Steps to Reproduce

  1. Run the attached application.
  2. Click on the red button "Open Camera"
  3. The public override void RequestMediaCapturePermission(...) in WebViewUIDelegate.cs (under IOS/MacCatalyst platform folders) do not get called.

Link to public reproduction project repository

https://github.com/tekmun/WebViewIssue.git

Version with bug

7.0.92

Is this a regression from previous behavior?

No, this is something new

Last version that worked well

Unknown/Other

Affected platforms

iOS, macOS

Affected platform versions

All versions

Did you find any workaround?

No

Relevant log output

Nil.
@tekmun tekmun added the t/bug Something isn't working label Sep 16, 2023
@ghost ghost added the area/controls 🎮 Label, Button, CheckBox, Slider, Stepper, Switch, Picker, Entry, Editor label Sep 18, 2023
@jsuarezruiz jsuarezruiz added this to the Backlog milestone Sep 18, 2023
@ghost
Copy link

ghost commented Sep 18, 2023

We've added this issue to our backlog, and we will work to address it as time and resources allow. If you have any additional information or questions about this issue, please leave a comment. For additional info about issue management, please read our Triage Process.

@tekmun
Copy link
Author

tekmun commented Sep 20, 2023

https://stackoverflow.com/questions/75631757/how-to-fix-double-permission-popup-in-maui-ios-web-view/77095790#77095790

Someone suggested this answer above but I cannot get it working.
Also, I cannot find RequestMediaCapturePermission in the MAUI repository. Can it be that the API is not bounded? If so, it should be straightforward to insert it and make it available in the next release.
Please take a look. Thanks.

@tekmun
Copy link
Author

tekmun commented Nov 3, 2023

Progress made in #18394

@tekmun tekmun closed this as completed Nov 3, 2023
@dotnet dotnet locked as resolved and limited conversation to collaborators Dec 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area/controls 🎮 Label, Button, CheckBox, Slider, Stepper, Switch, Picker, Entry, Editor control-webview platform/iOS 🍎 platform/macOS 🍏 macOS / Mac Catalyst t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants