Make iphone/smartphone vibrate from website, is it possible?

Legarndary picture Legarndary · Nov 10, 2014 · Viewed 16.9k times · Source

So im buiding a little quiz game using php, jQuery etc. I have maded it so each player uses his or hers smartphone as a "buzzer" button. And the i was wondering if it is possible to make the phone vibrate to give the user a nicer feedback of pressen the button.

I found a vibrate API but iOS is not supporting it (i have an iphone to test it)

It is the only thing i could found about it, someone know something else?

Answer

Shomz picture Shomz · Nov 10, 2014

You can always use Phonegap/Cordova to pack the web content into a native app. Then you'll have access to all (or most) of the native phone features.

Bear in mind that using JS for vibration is still widely unsupported while the native thing will work on everything.