Bug 210261

Summary: [iOS] DeviceMotionEvent returning value of NULL for acceleration and rotationRate on iOS 13.4
Product: WebKit Reporter: borisstodic <boris.stodic>
Component: WebCore JavaScriptAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Critical CC: boris.stodic
Priority: P2    
Version: Safari Technology Preview   
Hardware: iPhone / iPad   
OS: iOS 13   
Attachments:
Description Flags
sample for devicemotionevent none

borisstodic
Reported 2020-04-09 03:51:29 PDT
Created attachment 395934 [details] sample for devicemotionevent Hi everyone, It seems like DeviceMotionEvent does not report accelerometer and rotation rate values correctly on iOS 13.4, for both Safari and Chrome. Even if permission is granted through requestPermission() method and event does get triggered, accelerometer and rotationRate value are defaulting to NULL. The same few-liner sample code(sample will be attached with this bug report) is working on previous versions of iOS v13.3>. I believe that in iOS 13.4 implementation of DeviceMotionEvent or DeviceMotionAPI is somehow broken. Few links which might be related to this issue: https://trac.webkit.org/changeset/259601/webkit https://bugs.webkit.org/show_bug.cgi?id=209831 In order to run the attached sample, a file has to be deployed on the https server. Steps to reproduce are: 1. Serve index.html on https 2. Load page 3. hit the button "Init DeviceMotion" 4. check browser console to see results for the event, event.acceleration, event.rotationRate Thanks, Boris
Attachments
sample for devicemotionevent (668 bytes, text/html)
2020-04-09 03:51 PDT, borisstodic
no flags
Alexey Proskuryakov
Comment 1 2020-04-09 16:06:19 PDT
*** This bug has been marked as a duplicate of bug 209831 ***
Note You need to log in before you can comment on or make changes to this bug.