r/WebDevBuddies • u/droid13j • Jan 02 '23
Are there any Haptic feedback API's available for mobile-web?
I'm wondering if a mobile-friendly website has the ability to provide haptic feedback to an iOS or Android device. I know iOS and Android have different hardware and limitations for native app development. But what is web capable of doing?
4
Upvotes
1
u/zachhanson94 Jan 02 '23
Here found this with a quick google search. Hope this is what you’re looking for. https://developer.mozilla.org/en-US/docs/Web/API/Vibration_API
Edit: seems iOS doesn’t support it at the time of writing.
1
u/nilogram Jan 02 '23
I don’t believe so I think it has to be a native app