What is Vibration Api Tester

The Vibration API Tester triggers a 200-millisecond vibration on devices that support the navigator.vibrate() API and reports whether the operation succeeded. The Vibration API is primarily available on mobile devices with vibration motors and is commonly used in mobile web games, notification systems, and haptic feedback for touch interfaces. The tool performs a simple vibrate(200) call and displays the result. On desktop browsers without vibration hardware, the tool reports that the API is not supported. This is a quick hardware-capability check — the vibration happens physically on the device, not visually on screen.

How to Use Vibration Api Tester

  1. Step 1: Open the Vibration API Tester page. The page shows a test button and output area.
  2. Step 2: Click the **Test API** button. On a device with vibration hardware, the device vibrates briefly (200 milliseconds).
  3. Step 3: The output confirms 'Vibrated 200ms' on success, or 'Vibration API not supported' on desktop browsers without vibration hardware.
  4. Step 4: On mobile browsers that block the API (e.g., iOS Safari), the output indicates the API is not available.
  5. Step 5: No data is transmitted — the vibration is triggered entirely locally.

Why Use Vibration Api Tester

Mobile web developers building games, messaging apps, or interactive experiences need to verify that the Vibration API is accessible from their page before integrating haptic feedback. The Vibration API Tester provides instant confirmation without writing any integration code. It is also useful for device testing — confirming that a specific phone model's vibration motor responds to web API calls, which can vary across manufacturers and Android versions.

Privacy & Security

This tool runs entirely in your browser — no data ever leaves your device. There is no server round-trip, no upload, no logging, and no account required. Your input is processed locally using client-side JavaScript and is never stored, transmitted, or accessible to anyone else. When you close the tab, everything disappears.

Frequently Asked Questions

Why doesn't it work on my iPhone?

<p>Apple does not support the navigator.vibrate() API in Safari or WebKit-based browsers. The Vibration API is primarily available on Android Chrome and Firefox. This is a platform limitation, not a bug in the tool.</p>

Can I create custom vibration patterns?

<p>Yes, the navigator.vibrate() method accepts an array of numbers representing alternating vibration and pause durations in milliseconds. For example, vibrate([200, 100, 200]) creates two short vibrations with a pause between them. You can also cancel an ongoing vibration by calling vibrate(0). The tool uses a single 200ms pulse for simplicity, but the API supports complex patterns for game feedback and notification differentiation.</p>

Does vibration drain battery?

<p>A single 200ms vibration has negligible battery impact. Prolonged or continuous vibration patterns, such as those used in games, can contribute to battery drain over time, but a quick test is harmless.</p>

What is the maximum vibration duration?

<p>The Vibration API does not enforce a maximum duration, but browsers may cap extremely long vibrations for safety and battery reasons. Common patterns range from 10ms for subtle feedback to 500ms for notifications. Continuous vibration is generally discouraged for user experience reasons.</p>