tauri-apps / plugins-workspace

All of the official Tauri plugins in one place!
https://tauri.app
Apache License 2.0
814 stars 224 forks source link

[feat] Haptic feedback and vibration API for mobile #1554

Closed httpjamesm closed 1 month ago

httpjamesm commented 1 month ago

Describe the problem

Right now, it doesn’t seem like there is any way to trigger haptic feedback or vibrations programatically on mobile, at least for Android.

Describe the solution you'd like

I would like a vibration plugin which offers different modes of vibration, e.g.:

Alternatives considered

I’ve tried using the navigator.vibrate() web API, but it doesn’t seem to do anything.

Additional context

No response

FabianLars commented 1 month ago

For what it's worth, we've recently created a plugin for a client (in public) here, it's not quite ready to upstream it into this repo, but it's close enough that it'd be a waste of time for others to create a new plugin for this, hence me writing this message :)