capacitor-plugins icon indicating copy to clipboard operation
capacitor-plugins copied to clipboard

[Feature Request] Haptics: add all vibration types to the API

Open Aarbel opened this issue 3 years ago • 1 comments

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 image

Aarbel avatar Aug 24 '22 10:08 Aarbel

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

jcesarmobile avatar Sep 27 '22 17:09 jcesarmobile