Using the vibrate function of an iphone

When you turn off the sound of your iPone and get a call, the iPhone vibrates. I’m working on a simple app and I’d like the iPad to vibrate when you press a button. Is such a thing technically possible? It is not a vibrator!
Thank you.

The iPhone uses Safari. That browser blocks the Vibrations API.

But since it’s an app, and if you’re using WKWebView, you might be able to build a bridge between Hype and Swift.

1 Like

My app is for the iPad only and what I read is for the iPhone.
What’s more, it’s a bit too complicated for me.
Thank you very much!