You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expected behavior:
Using HeadlessInAppWebView when I call the javascript snippet: navigator.mediaDevices.getUserMedia({audio:true}).then((e)=>console.log(e)).catch((e)=>console.log(e))
whether inside a loded page, or by calling headlessWebView.webViewController.evaluateJavascript in my dart code, then I expect to enter the then or the catch clause of my javascript promise.
Current behavior:
instead I get the message:
JavaScript execution returned a result of an unsupported type
I have tested the same code on an iPhone simulator and it is working as intended.
Steps to reproduce
In the example app edit the code for class headless_inapp_webview.screen.dart
In the initState method add the onPermissionRequest callback
Are you sure you have already searched for the same problem?
Some people open new issues but they didn't search for something similar or for the same issue. Please, search for it using the GitHub issue search box or on the official inappwebview.dev website, or, also, using Google, StackOverflow, etc. before posting a new one. You may already find an answer to your problem!
If this is really a new issue, then thank you for raising it. I will investigate it and get back to you as soon as possible. Please, make sure you have given me as much context as possible! Also, if you didn't already, post a code example that can replicate this issue.
In the meantime, you can already search for some possible solutions online! Because this plugin uses native WebView, you can search online for the same issue adding android WebView [MY ERROR HERE] or ios WKWebView [MY ERROR HERE] keywords.
Following these steps can save you, me, and other people a lot of time, thanks!
pichillilorenzo
changed the title
[webRTC / macOS] onPermissionRequest not called
[webRTC / macOS] onPermissionRequest not called on HeadlessInAppWebView
Oct 27, 2022
Environment
Device information:
MacBook Air x86 with macOS Monterey 12.5.1
Description
Expected behavior:
Using HeadlessInAppWebView when I call the javascript snippet:
navigator.mediaDevices.getUserMedia({audio:true}).then((e)=>console.log(e)).catch((e)=>console.log(e))
whether inside a loded page, or by calling
headlessWebView.webViewController.evaluateJavascript
in my dart code, then I expect to enter the then or the catch clause of my javascript promise.Current behavior:
instead I get the message:
JavaScript execution returned a result of an unsupported type
I have tested the same code on an iPhone simulator and it is working as intended.
Steps to reproduce
Thank you for your support, and thank you for this awesome plugin, the fact that it supports more platforms than just android and iOS is great.
The text was updated successfully, but these errors were encountered: