You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
HapticFeedback: Support UINotificationFeedbackType.success/warning/error on iOS #150029
When notifying the user of the success or failure of an action through vibration, I would like to use the standard API on iOS.
As an alternative, I am currently using one of HapticFeedback's heavyImpact/lightImpact/mediumImpact/selectionClick/vibrate, but this does not provide the expected vibration feedback on iOS.
Proposal
iOS provides an API called UINotificationFeedbackGenerator, which is designed to notify users of the outcome of an action. While HapticFeedback currently supports three types of vibration (UIImpactFeedbackGenerator, UISelectionFeedbackGenerator, and kSystemSoundID_Vibrate), adding UINotificationFeedbackType’s success/warning/error would allow for standard vibration notifications for the success or failure of a user action. Therefore, it would be great if the following HapticFeedback API could be provided:
success(): UINotificationFeedbackType.success on iOS, HapticFeedbackConstants.CONFIRM on Android
warning(): UINotificationFeedbackType.warning on iOS, HapticFeedbackConstants.REJECT on Android
error(): UINotificationFeedbackType.error on iOS, HapticFeedbackConstants.REJECT on Android
Note that there may be room for discussion regarding warning(), as there is no direct equivalent on Android.
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.
Activity
jasminder commentedon Jul 17, 2024
JustinFay01 commentedon Jun 2, 2025
Add haptic notifications support. (#177721)
github-actions commentedon Nov 21, 2025
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.Add haptic notifications support. (flutter#177721)
Add haptic notifications support. (flutter#177721)
Add haptic notifications support. (#177721)