<?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>201676</bug_id>
          
          <creation_ts>2019-09-10 23:15:15 -0700</creation_ts>
          <short_desc>unable to use VR - cannot access devicemotion event on Safari 13 on iOS</short_desc>
          <delta_ts>2019-09-17 17:02:26 -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>Other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Oren Me">oren.me</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bfulgham</cc>
    
    <cc>cdumez</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>wilander</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1569847</commentid>
    <comment_count>0</comment_count>
    <who name="Oren Me">oren.me</who>
    <bug_when>2019-09-10 23:15:15 -0700</bug_when>
    <thetext>trying to query for window.DeviceMotionEvent gives back a warning message &quot;No device motion or orientation events will be fired until permission has been requested and granted.&quot;.
I can&apos;t see API to request permission and this is a regression from iOS12 where this worked.
This event is used to get critical information for 360 and VR applications.
Also, the permission settings in the general device settings to allow access has been removed, as it seems, so I can&apos;t find a way to ask or set the permission.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1571547</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2019-09-17 08:37:53 -0700</bug_when>
    <thetext>&lt;rdar://problem/55440172&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1571748</commentid>
    <comment_count>2</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2019-09-17 17:02:26 -0700</bug_when>
    <thetext>You need to use the DeviceOrientation / DeviceMotion API to request permission to access this data (with a user interaction), which will prompt the user.

See:
https://w3c.github.io/deviceorientation/spec-source-orientation.html#dom-deviceorientationevent-requestpermission
https://w3c.github.io/deviceorientation/spec-source-orientation.html#dom-devicemotionevent-requestpermission

It was standardized.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>