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:
Chris Bracken 2017-05-19 17:01:36 -07:00 committed by GitHub
parent ce354876a8
commit d657e3889e

View File

@ -77,7 +77,7 @@ using namespace shell;
}
- (void)vibrateHapticFeedback {
AudioServicesPlayAlertSound(kSystemSoundID_Vibrate);
AudioServicesPlaySystemSound(kSystemSoundID_Vibrate);
}
- (void)setSystemChromePreferredOrientations:(NSArray*)orientations {