Bug 210261 - [iOS] DeviceMotionEvent returning value of NULL for acceleration and rotationRate on iOS 13.4
Summary: [iOS] DeviceMotionEvent returning value of NULL for acceleration and rotation...
Status: RESOLVED DUPLICATE of bug 209831
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore JavaScript (show other bugs)
Version: Safari Technology Preview
Hardware: iPhone / iPad iOS 13
: P2 Critical
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-04-09 03:51 PDT by borisstodic
Modified: 2020-04-09 16:06 PDT (History)
1 user (show)

See Also:


Attachments
sample for devicemotionevent (668 bytes, text/html)
2020-04-09 03:51 PDT, borisstodic
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description borisstodic 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
Comment 1 Alexey Proskuryakov 2020-04-09 16:06:19 PDT

*** This bug has been marked as a duplicate of bug 209831 ***