Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 782
Legarndary Avatar asked Feb 12 '23 14:02

Legarndary


1 Answers

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.

like image 94
Shomz Avatar answered Feb 14 '23 10:02

Shomz