You are here

W3C Vibration Native/Browser API

The Vibration API is a simple browser-based device API documented by the W3C Device APIs Working Group. The Vibration API enables developers to trigger the vibration mechanism in a hosting device, such as a smartphone. The vibration length and pattern of the vibrations can be customized. The API offers simple tactile feedback, not fine-grained control. The API should not be confused with sending alerts and notifications, as the Notifications API can handle these requests. The Vibration API does not specify wether or not the hosting device contains a vibration mechanism.