Device Motion PWA Demo
With the DeviceMotion event, your PWA can detect a device's physical motion into space.
, open it from your homescreen, request access to the device's sensors below, then move your device in space to see the values below change.
The DeviceMotion event is commonly used to detect and track a device's physical motion, encompassing factors such as acceleration and rotation rate.
Various types of PWAs can make use of this event, e.g. mobile gaming, fitness tracking, and augmented reality apps. You can use a device's acceleration, gravity, and gyroscope data, for tasks like virtual object manipulation and spatial interactions.