fluttervibration

Implement vibration in flutter


Is there any to Vibrate the phone even if the Vibration Feedback setting is turned off of the device?

I have tried this piece of code but it will work only when the Vibration Feedback is turned on from the settings.

await HapticFeedback.vibrate();

I have Even tried vibration plugin but won't get success in that as well.


Solution

  • No, that is not achievable. You can't override the user settings at the phone's system level from an application. That is, if your uses do not want their phone to vibrate, the phone won't vibrate, no matter how you implement it.

    If was overridable, it would be a horrible user experience anyways. If I disable the vibrations in my phone's settings it's because I don't want the phone to vibrate in any situation. If all of a sudden an application manages to override that setting to display haptic feedbacks I would be a bit annoyed, and I don't think you want that for your users.