benjamindean / flutter_vibration

Handle vibration on iOS and Android in Flutter apps
219 stars 68 forks source link

How to control intensity of vibration on iOS? #38

Closed Livinglist closed 4 years ago

Livinglist commented 4 years ago

I tried to set amplitude but the intensity doesn't seem to change. on iOS 14.

ThibautSilva commented 3 years ago

Same for me, do you have a response ? thanks

benjamindean commented 3 years ago

Same for me, do you have a response ? thanks

There was another related issue. Which iPhone are you testing on? If will only work on iPhone 8 or newer.

ThibautSilva commented 3 years ago

iPhone 11, what is the good parameter ? And what are values for this variable ? Thanks

Livinglist commented 3 years ago

Same for me, do you have a response ? thanks

Hi @ThibautSilva This is what I did:

Vibration.vibrate(pattern: [0, 5], intensities: [255]);

You can change the intensity this way.

nt4f04uNd commented 3 years ago

@Livinglist did you make it vibrate 5 milliseconds?