<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>221031</bug_id>
          
          <creation_ts>2021-01-27 03:11:08 -0800</creation_ts>
          <short_desc>getUserMedia on iOS 14.4 with WKWebView still produces a NotAllowedError</short_desc>
          <delta_ts>2021-01-27 06:31:50 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebRTC</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>220184</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Marc Bonsels">marcbonsels</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>youennf</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1722894</commentid>
    <comment_count>0</comment_count>
    <who name="Marc Bonsels">marcbonsels</who>
    <bug_when>2021-01-27 03:11:08 -0800</bug_when>
    <thetext>I&apos;m trying to use getUserMedia on iOS 14.4 with WKWebView within a Cordova app. I&apos;m using the HelloWorld app from Cordova to reproduce this.

I provided the NSCameraUsageDescription string.

I&apos;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: &quot;NotAllowedError: The request is not allowed by the user agent or the platform in the current context, possibly because the user denied permission&quot;

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?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1722944</commentid>
    <comment_count>1</comment_count>
    <who name="youenn fablet">youennf</who>
    <bug_when>2021-01-27 06:27:37 -0800</bug_when>
    <thetext>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 ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1722947</commentid>
    <comment_count>2</comment_count>
    <who name="youenn fablet">youennf</who>
    <bug_when>2021-01-27 06:28:29 -0800</bug_when>
    <thetext>The only workaround for now is to have your content be loaded from a HTTP (localhost)/HTTPS URL.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1722949</commentid>
    <comment_count>3</comment_count>
    <who name="Marc Bonsels">marcbonsels</who>
    <bug_when>2021-01-27 06:31:50 -0800</bug_when>
    <thetext>Thanks for the feedback, Youenn.

I saw the bug you referenced, but I thought this was fix was shipped with iOS 14.4, no?</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>