Short tap-like vibration for iOS


#1

I’m trying to add a very short “tap-like” vibration on button click for iOS. I know about the plugin, but the time parameter is ignored on iOS. The standard vibration is way too long, and I’m wondering how to it this? I’m trying to achieve something similar to when to turn on/off the WiFi toggle in iPhone settings.


#2

I think it isn’t possible for the plugin because what you already said the time parameter is being ignored by iOS.


#3

Yes, but maybe there is some other workaround. In theory it’s possible (Apple does it). Question is if anyone else attempted it to do it in Ionic somehow.


#4

Maybe you should look at this cordova plugin:

TapticEngine.impact({
  style: "heavy" // light | medium | heavy
});