Bug 273960

Summary: Add Gyroscope API to iPhone and iPad
Product: WebKit Reporter: Jeffrey Blanz <possum.bracing0v>
Component: WebKit Misc.Assignee: Nobody <webkit-unassigned>
Status: RESOLVED WONTFIX    
Severity: Major CC: annevk, marcosc, possum.bracing0v
Priority: P2    
Version: Safari 17   
Hardware: iPhone / iPad   
OS: iOS 17   
URL: https://w3c.github.io/gyroscope/

Description Jeffrey Blanz 2024-05-09 10:49:36 PDT
Some games use gyroscope controls for aiming. This is not possible on safari due to the lack of the Gyroscope API.

The standard is here: https://developer.mozilla.org/en-US/docs/Web/API/Gyroscope
Comment 1 Alexey Proskuryakov 2024-05-09 13:01:21 PDT
As far as I can tell, we don't have a standards position issue open at this time.
Comment 2 Marcos Caceres 2024-05-14 07:07:09 PDT
I think you can use the device orientation API:
developer.mozilla.org/en-US/docs/Web/API/Device_orientation_events/Detecting_device_orientation

It relies on the gyroscope to get the device’s orientation.
Comment 3 Marcos Caceres 2024-05-14 07:15:15 PDT
Filed standards position request:
https://github.com/WebKit/standards-positions/issues/347
Comment 4 Marcos Caceres 2024-05-14 07:16:50 PDT
It’s highly likely we will “oppose” this specification as it’s duplicative of what the Device Orientation and Motion specification already provides (as far as I can tell).