<?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>213469</bug_id>
          
          <creation_ts>2020-06-22 09:42:41 -0700</creation_ts>
          <short_desc>WKWebView motion permission prompt doesn&apos;t show app name</short_desc>
          <delta_ts>2021-03-17 07:32:28 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>New Bugs</component>
          <version>Other</version>
          <rep_platform>iPhone / iPad</rep_platform>
          <op_sys>iOS 13</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="jcesarmobile">juliosincesar</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>cdumez</cc>
    
    <cc>david.goelzhaeuser</cc>
    
    <cc>dvpdiner2</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>youennf</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1665074</commentid>
    <comment_count>0</comment_count>
    <who name="jcesarmobile">juliosincesar</who>
    <bug_when>2020-06-22 09:42:41 -0700</bug_when>
    <thetext>If you have a Cordova app that uses WKWebView and devicemotion events, since iOS 13 it&apos;s required to request motion permissions with DeviceMotionEvent.requestPermission(), but the app name is not shown in the permission prompt text.

See sample app

https://github.com/jcesarmobile/cordova-requestPermission-issue

run
cordova prepare
open platforms/ios/HelloCordova.xcworkspace
and run from Xcode on any iOS 13 device
click &quot;Access DeviceMotions&quot; and the prompt shows &quot;&quot; Would Like to Access Motion and Orientation.

Instead of &quot;&quot; being empty, it should contain the app display name.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1665611</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2020-06-23 17:49:30 -0700</bug_when>
    <thetext>&lt;rdar://problem/64674104&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1718931</commentid>
    <comment_count>2</comment_count>
    <who name="youenn fablet">youennf</who>
    <bug_when>2021-01-12 02:12:30 -0800</bug_when>
    <thetext>The prompt is using the host which for custom schemes handler might be misleading or empty.
It might indeed be better to use the app name, at least if the host is empty.
We should be consistent with getUserMedia prompt.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1731785</commentid>
    <comment_count>3</comment_count>
    <who name="David Gölzhäuser">david.goelzhaeuser</who>
    <bug_when>2021-02-20 02:30:12 -0800</bug_when>
    <thetext>I my opinion the getUserMedia prompt behavior is not correct either.

We have a Cordova based app using a WKWebView. When getting the userMedia the Application name is &quot;localhost&quot; instead of the Apps name. The Web part is running on a local webserver on the device itself.

Am I missing something?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1740699</commentid>
    <comment_count>4</comment_count>
    <who name="Darryl Pogue">dvpdiner2</who>
    <bug_when>2021-03-17 07:32:28 -0700</bug_when>
    <thetext>I believe this has just been addressed as part of https://bugs.webkit.org/show_bug.cgi?id=223247</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>