So I’ve been trying to make my phone vibrate when the screen is clicked, but it’s not working. I’ve checked the sketch premissions too. Thank you for your help. The code that isn’t working
The following source code will cause an old Nexus phone to vibrate. It has no effect on a tablet because I’m not sure they have that feature. Make sure ‘vibrate on touch’ is turned on in the phone’s settings and the sketch’s permissions is set to ‘Vibrate’. You may not need all those imports; I didn’t test which ones are used. Note that VIBRATOR_SERVICE is marked as deprecated, but it still works.