+ 1

How do you make buttons vibrate the device?

I've tried looking at other people's codes and done the same thing! What am I doing wrong? Do I have to use JavaScript? (I've made a code as an example to show how I'm doing it.) https://code.sololearn.com/WEcwjWV5fzbS/?ref=app

4th Jan 2021, 7:26 PM
Jon
4 odpowiedzi
+ 3
you als need to create the proper function in the javascript pane - here is short demo https://code.sololearn.com/WtxWDEV3gZnA/?ref=app
4th Jan 2021, 8:03 PM
Martin Ed
Martin Ed - avatar
0
what decive are you using? Safari (and any other browser in iOS) does not support vibrating
4th Jan 2021, 7:46 PM
Martin Ed
Martin Ed - avatar
0
No, my device vibrates fine. It just comes up with the an error message if I try to press the button that I made. Other codes seem to be able to make devices vibrate but not my own coding!
4th Jan 2021, 7:53 PM
Jon
0
Thank you! Now I know how to do it! 😁
5th Jan 2021, 10:03 AM
Jon