<?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>180551</bug_id>
          
          <creation_ts>2017-12-07 15:34:58 -0800</creation_ts>
          <short_desc>getUserMedia fails with HOME SCREEN mode on iOS, navigator.mediaDevices are undefined</short_desc>
          <delta_ts>2021-01-04 07:54:42 -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>Safari 11</version>
          <rep_platform>iPhone / iPad</rep_platform>
          <op_sys>iOS 12</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>CONFIGURATION CHANGED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=220184</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="MH">martin.hejral</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>adam</cc>
    
    <cc>andrew</cc>
    
    <cc>ben.browitt</cc>
    
    <cc>gabriel</cc>
    
    <cc>martin.hejral</cc>
    
    <cc>rmja</cc>
    
    <cc>szmydadam</cc>
    
    <cc>webkit-unassigned</cc>
    
    <cc>youennf</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1379324</commentid>
    <comment_count>0</comment_count>
    <who name="MH">martin.hejral</who>
    <bug_when>2017-12-07 15:34:58 -0800</bug_when>
    <thetext>+++ This bug was initially created as a clone of Bug #176349 +++

There is test pen
https://codepen.io/hejral/pen/eeaKrx?editors=1011

getUserMedia does NOT exist in iOS HOME SCREEN mode web app defined with
&lt;meta name=&quot;apple-mobile-web-app-capable&quot; content=&quot;yes&quot; /&gt;

VIDEO-CAMERA DO NOT WORKS! we get error message:
navigator.mediaDevices UNDEFINED!

This bug is really huge problem, because we are building modern web-app which depends on video-camera-scanning... (additional processing with canvas). And we are not alone...

Many thanks for help, in advance!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1379326</commentid>
    <comment_count>1</comment_count>
    <who name="MH">martin.hejral</who>
    <bug_when>2017-12-07 15:45:49 -0800</bug_when>
    <thetext>Additional info:

apple-mobile-web-app-capable
Sets whether a web application runs in full-screen mode.

Syntax
&lt;meta name=&quot;apple-mobile-web-app-capable&quot; content=&quot;yes&quot;&gt;

Discussion
If content is set to yes, the web application runs in full-screen mode; otherwise, it does not. The default behavior is to use Safari to display web content.

You can determine whether a webpage is displayed in full-screen mode using the window.navigator.standalone read-only Boolean JavaScript property.

https://developer.apple.com/library/content/documentation/AppleApplications/Reference/SafariHTMLRef/Articles/MetaTags.html#//apple_ref/doc/uid/TP40008193-SW3</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1467996</commentid>
    <comment_count>2</comment_count>
    <who name="gabrielstuff">gabriel</who>
    <bug_when>2018-10-11 03:35:18 -0700</bug_when>
    <thetext>Hello,
I confirm that this still is the case on iOS 11+. Newly iOS 12 got the same issue.
Test case here: https://gigantic-sword.glitch.me/

This is clearly a big issue. Will be glad to help.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1486525</commentid>
    <comment_count>3</comment_count>
    <who name="MH">martin.hejral</who>
    <bug_when>2018-12-10 01:53:55 -0800</bug_when>
    <thetext>(In reply to gabrielstuff from comment #2)
&gt; Hello,
&gt; I confirm that this still is the case on iOS 11+. Newly iOS 12 got the same issue.
&gt; 
&gt; This is clearly a big issue. Will be glad to help.

YES!

Yes, still blocked on iOS12.1 in home-screen mode.

It&apos;s a shame that this ability is still blocked and disabled for a REAL web app on iOS... I do not understand why...

Apple is definitely disadvantaging iOS versus competitors...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1486529</commentid>
    <comment_count>4</comment_count>
    <who name="MH">martin.hejral</who>
    <bug_when>2018-12-10 02:11:38 -0800</bug_when>
    <thetext>(In reply to gabrielstuff from comment #2)

&gt; This is clearly a big issue. Will be glad to help.

...the bug was directly reported to Apple repeatedly - the answer to my report was: DUPLICATE OF BUG xyz :))

https://bugreport.apple.com/web/?problemID=42564558

Please try to urge Apple directly too... it will definitely help if we get louder.

I do not know... but maybe there is another way when our bugreports are ignored?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1498969</commentid>
    <comment_count>5</comment_count>
    <who name="Adam Szmyd">szmydadam</who>
    <bug_when>2019-01-28 02:03:07 -0800</bug_when>
    <thetext>The same issue (navigator.mediaDevices = undefined) is when using i.e. SFSafariViewController and having &quot;in app&quot; Safari experience. you can easily check that by opening link from Google Calendar app. It&apos;ll also give you navgiator.mediaDevices as undefined which breaks a lot of user-media related web pages.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1717116</commentid>
    <comment_count>6</comment_count>
    <who name="youenn fablet">youennf</who>
    <bug_when>2021-01-04 07:54:42 -0800</bug_when>
    <thetext>getUserMedia should now be supported everywhere for http/https with SecureContext</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>