capacitor-plugins
capacitor-plugins copied to clipboard
[Feature Request] Haptics: add all vibration types to the API
Hi Capacitor,
Thanks a lot for your amazing work.
I just began to use @capacitor/haptics plugin.
It would be really nice to provide all the last possibilities provided by native haptics apis:
Not yet provided by capacitor
- Rigid Impact
- Soft Impact
- Selection Changed
- VibrateOptions - intensity
Provided by capacitor
- Light Impact
- Medium Impact
- Heavy Impact
- Success Notification
- Error Notification
- Warning Notification
- VibrateOptions - duration
You can test them all using this app on the store: https://apps.apple.com/gb/app/haptic-haven/id1523772947, cf https://github.com/davejacobsen/HapticHaven

Selection Changed is already supported https://capacitorjs.com/docs/apis/haptics#selectionchanged
the tricky part is implementing for Android and web since there is no direct equivalent