flutter_vibration icon indicating copy to clipboard operation
flutter_vibration copied to clipboard

iOS : Conflict with SystemSound.play(SystemSoundType.click)

Open john990 opened this issue 2 years ago • 0 comments

Hi, Vibration doesn't work when used with SystemSound, works fine when used alone.

Not Work:

SystemSound.play(SystemSoundType.click);
Vibration.vibrate(pattern: [10, 12, 10, 12], intensities: [1, 100]);

Work fine:

Vibration.vibrate(pattern: [10, 12, 10, 12], intensities: [1, 100]);

flutter doctor:

[✓] Flutter (Channel stable, 3.0.0, on macOS 12.0.1 21A559 darwin-x64, locale zh-Hans-CN)
[!] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    ✗ Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See https://flutter.dev/docs/get-started/install/macos#android-setup for more details.
[✓] Xcode - develop for iOS and macOS (Xcode 13.4.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2021.2)
[✓] IntelliJ IDEA Community Edition (version 2020.3.3)
[✓] VS Code (version 1.66.0)
[✓] Connected device (4 available)

john990 avatar Sep 09 '22 07:09 john990