Comments on Vibration API Legendary scribbles about JavaScript, HTML5, AJAX, PHP, CSS, and ∞. 2012-12-20T13:43:50Z http://davidwalsh.name/vibration-api/feed/atom WordPress By: iH8 iH8 http://iH8.nl http://davidwalsh.name/?p=5632#comment-41221 2012-12-14T12:12:53Z 2012-12-14T12:12:53Z I really love the MSN nudge idea: http://dev.ih8.nl/demos/vibrate/ No, really! We need more bling

]]>
By: Ravindran Ravindran http://davidwalsh.name/?p=5632#comment-41209 2012-12-14T06:24:55Z 2012-12-14T06:24:55Z I hope user should get some say/allow on whether he should allow the site to use vibrate API. (similar to desktop notification API in Chrome desktop browser)

In desktop era, SetForegroundWindow (http://msdn.microsoft.com/en-us/library/windows/desktop/ms633539(v=vs.85).aspx) is the most abused API by desktop applications. Eventually Microsoft changed the behavior to just flash the taskbar entry.

]]>
By: psobko psobko http://davidwalsh.name/?p=5632#comment-40938 2012-12-07T16:46:33Z 2012-12-07T16:46:33Z I really hope this never comes to my iPhone. Apple’s had a history of cracking down on apps that abuse vibration, in fact it’s even impossible to create a sustained vibration with the iOS SDK. The last thing we need is unregulated access to this feature. The less hardware the browser has access to, the better.

]]>
By: Alex Alex http://davidwalsh.name/?p=5632#comment-40935 2012-12-07T16:03:48Z 2012-12-07T16:03:48Z Maybe pr0n companies will adopt this “new technology” faster than the rest of us… AGAIN :P

]]>
By: Jean Ceugniet Jean Ceugniet http://jean-ceugniet-developpement-web.com http://davidwalsh.name/?p=5632#comment-40910 2012-12-07T07:33:43Z 2012-12-07T07:33:43Z “Make the tab jiggle” !? Please God no ! A persistent animation was annoying enough, imagine shaking all the content of a tab.
I think it can be well used on a mobile : i once developed a site where alert windows could be critical (a one-cent bidding playful website), and buzzing could have been a real plus on mobiles.

]]>
By: Rick Rick http://davidwalsh.name/?p=5632#comment-40905 2012-12-07T05:51:56Z 2012-12-07T05:51:56Z Next thing I want to see is desktop browsers providing support for these things.

Vibrate, for example, could make the tab jiggle. Or play a fake vibrate noise.

]]>
By: Chris Strat Chris Strat http://davidwalsh.name/?p=5632#comment-40890 2012-12-06T22:14:01Z 2012-12-06T22:14:01Z That is brilliant – I am loving how there are API expanding deeper into the device.

One that I am really keen on finding is one to prevent the screen from dimming/locking.
Are you aware of any that are out there that work across iPhone and Android browsers?

]]>
By: David Walsh David Walsh http://davidwalsh.name http://davidwalsh.name/?p=5632#comment-40880 2012-12-06T17:51:33Z 2012-12-06T17:51:33Z Good point Andrew. Features that are more invasive, like Geolocation and getUserMedia, do require permission via prompt; vibration isn’t invasive but could be misused. That said, browsers do provide popup blocking so…who knows. I wouldn’t be opposed to the Vibration API being a setting.

]]>
By: unscriptable unscriptable http://unscriptable.com http://davidwalsh.name/?p=5632#comment-40879 2012-12-06T17:42:00Z 2012-12-06T17:42:00Z Hey Dave,

Nice write-up!

Speaking of standards, shouldn’t the sniff for “vibrate” look more like the following?


// Standards ftw!
var supportsVibrate = "vibrate" in (clientInformation || navigator);

Regards,

– John

]]>
By: Andrew Champ Andrew Champ http://andrewchamp.com http://davidwalsh.name/?p=5632#comment-40878 2012-12-06T17:29:08Z 2012-12-06T17:29:08Z @Steve Edson I don’t believe it should need to ask. If it’s annoying just close the site. I tested it and it won’t run in the background if Firefox isn’t the focused application.

I know where you’re coming from w/ it being annoying, but it’s the same w/ popups, popunders, blink, css3 animations, etc… if you don’t like it, close it and blame the developer for using it improperly. :)

]]>
By: Steve Edson Steve Edson http://steveedson.co.uk http://davidwalsh.name/?p=5632#comment-40877 2012-12-06T17:13:32Z 2012-12-06T17:13:32Z Great article, appreciate the code samples. I think this could be great if it’s widely supported and used properly. I’d like to see mobile browsers add an option to turn it off, like you can with location services. It could be very annoying if a website is constantly buzzing at me.

]]>