WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED DUPLICATE of
bug 220184
221031
getUserMedia on iOS 14.4 with WKWebView still produces a NotAllowedError
https://bugs.webkit.org/show_bug.cgi?id=221031
Summary
getUserMedia on iOS 14.4 with WKWebView still produces a NotAllowedError
Marc Bonsels
Reported
2021-01-27 03:11:08 PST
I'm trying to use getUserMedia on iOS 14.4 with WKWebView within a Cordova app. I'm using the HelloWorld app from Cordova to reproduce this. I provided the NSCameraUsageDescription string. I'm using the sample code as provided on
https://webkit.org/blog/11353/mediarecorder-api/
(but with audio set to false). When I first launch the app and click the button to start the stream, the permission request comes up, which I confirm. Then this error occurs: "NotAllowedError: The request is not allowed by the user agent or the platform in the current context, possibly because the user denied permission" Afterwards the permission request will not come again, only after I re-install the whole app. Am I doing anything wrong? From what I understood, getUserMedia should be available in iOS 14.4 for apps based on WKWebView, right?
Attachments
Add attachment
proposed patch, testcase, etc.
youenn fablet
Comment 1
2021-01-27 06:27:37 PST
The issue is probably that the domain URL is not HTTP or HTTPS so access is always denied. This is fixed in
bug 220184
. *** This bug has been marked as a duplicate of
bug 220184
***
youenn fablet
Comment 2
2021-01-27 06:28:29 PST
The only workaround for now is to have your content be loaded from a HTTP (localhost)/HTTPS URL.
Marc Bonsels
Comment 3
2021-01-27 06:31:50 PST
Thanks for the feedback, Youenn. I saw the bug you referenced, but I thought this was fix was shipped with iOS 14.4, no?
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug