<?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>213467</bug_id>
          
          <creation_ts>2020-06-22 09:31:33 -0700</creation_ts>
          <short_desc>WKWebView doesn&apos;t show motion usage description</short_desc>
          <delta_ts>2021-03-16 11:01:16 -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>Blocker</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>dvpdiner2</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>youennf</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1665067</commentid>
    <comment_count>0</comment_count>
    <who name="jcesarmobile">juliosincesar</who>
    <bug_when>2020-06-22 09:31:33 -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 configured NSMotionUsageDescription is not shown and that causes App Store rejection.

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. But not the configured NSMotionUsageDescription.
As there is no NSMotionUsageDescription shown, Apple rejects the app because of their own bug.

see reported issue where the user claims that the app was rejected because of that https://github.com/apache/cordova-ios/issues/891

I would expect that the app shows the configured NSMotionUsageDescription text or that Apple doesn&apos;t reject apps because of that.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1665609</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2020-06-23 17:49:18 -0700</bug_when>
    <thetext>&lt;rdar://problem/64674101&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1718930</commentid>
    <comment_count>2</comment_count>
    <who name="youenn fablet">youennf</who>
    <bug_when>2021-01-12 02:11:40 -0800</bug_when>
    <thetext>If NSMotionUsageDescription is not present, we should probably deny access.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>