Update iOS HapticFeedback.vibrate implementation (flutter/engine#3702)
Use AudioServicesPlaySystemSound instead of AudioServicesPlayAlertSound. This avoids the potential of a system beep on devices without support for haptic feedback.
This commit is contained in:
@@ -77,7 +77,7 @@ using namespace shell;
|
||||
}
|
||||
|
||||
- (void)vibrateHapticFeedback {
|
||||
AudioServicesPlayAlertSound(kSystemSoundID_Vibrate);
|
||||
AudioServicesPlaySystemSound(kSystemSoundID_Vibrate);
|
||||
}
|
||||
|
||||
- (void)setSystemChromePreferredOrientations:(NSArray*)orientations {
|
||||
|
||||
Reference in New Issue
Block a user