9

I checked on http://caniuse.com/ but can't find anything about compatibility for the vibration API.

Which browsers support it?

Peter O.
  • 32,158
  • 14
  • 82
  • 96
sdabet
  • 18,360
  • 11
  • 89
  • 158
  • 2
    [MDN](https://developer.mozilla.org/en-US/docs/DOM/window.navigator.vibrate) says that Firefox and Chrome support it. – Passerby Jan 24 '13 at 09:59
  • it doesn't seem to work in Chrome 24 though – sdabet Jan 24 '13 at 10:04
  • 2
    MDN says that Chrome supports a prefixed version, but yeah, I can't find such method in `navigator` (desktop version) too. You can use `var vib=navigator.vibrate || navigator.mozVibrate || navigator.webkitVibrate || function(){};` to hold a global method. – Passerby Jan 24 '13 at 10:14
  • 1
    Not sure of the current status but the prefix was dropped in webkit changeset 124358: http://trac.webkit.org/changeset/124358 - Related: http://stackoverflow.com/questions/13633561/where-is-the-vibration-api-hiding-in-chrome-23 – psema4 Jan 31 '13 at 03:38

3 Answers3

8

Update [2014-03-07]: The Vibration API is now supported by Firefox, Chrome, and Opera. I've also made this information available on on caniuse.com.


Based on this article:

The Vibration API is still primarily unsupported. Firefox 16+ is currently the only browser with support for the API.

Aurelio De Rosa
  • 21,856
  • 8
  • 48
  • 71
  • The vibration API will also be supported in Chrome 30 for Android. http://blog.chromium.org/2013/08/chrome-30-beta-richer-web-on-android.html – Nico Burns Aug 27 '13 at 09:56
  • Vibration API is available starting with Chrome 32 (http://blog.chromium.org/2013/11/chrome-32-beta-animated-webp-images-and.html) – mkurz Jan 16 '14 at 09:58
2

According to Mozilla Developer Network it is supported in Chrome with prefix webkit, in Firefox 11+ with prefix moz and in Firefox 16+ without any prefix.

But as you can check in this Issue in Chromium as of now it is not supperted in Chrome and they seem to be in no hurry as Priority is 2(Normal).

Raman
  • 1,336
  • 10
  • 13
0

It is not supported in Android strock browser as of now.

GISGusting
  • 29
  • 1
  • 3
    This should be comment not an answer. – 4dgaurav Jun 03 '14 at 10:00
  • This is an answer to the main question "Which browsers support it?" and not a fine tuning of the question. Android stock browser is a different product from all Firefox, Chrome and Opera covered by the other 2 answers. What else to comment??? – GISGusting Jun 04 '14 at 01:39