flutter-plugins
flutter-plugins copied to clipboard
[audio_streamer]: handleInterruptions crashes app on iOS
Plugin name & version noise_meter 2.0.0 which depends on audio_streamer 1.2.0
Describe the bug Audio interruptions crash app.
To Reproduce
- Play audio with https://pub.dev/packages/just_audio using https://pub.dev/packages/audio_session for interruption handling.
- Put app into background and start playing audio with another app, for example Spotify, to trigger an interruption.
Expected behavior Audio interruptions should be handled, or at least the interruption code should not crash app.
Actual behavior App crashes on interruption.
Note: Commenting out the function body solves the issue. @objc func handleInterruption(notification: Notification) { // To be implemented. //eventSink!(FlutterError(code: "100", message: "Recording was interrupted", details: "Another process interrupted recording.")) }
Flutter doctor [✓] Flutter (Channel stable, 1.22.5, on macOS 11.0.1 20B29 darwin-x64, locale en-IS) [✓] Android toolchain - develop for Android devices (Android SDK version 30.0.0) [✓] Xcode - develop for iOS and macOS (Xcode 12.3) [✓] Android Studio (version 4.1) [✓] VS Code (version 1.46.1) [✓] Connected device (2 available)
Smartphone
- Device: iPhone Xs
- OS: iOS 14.3
any updates on this issue?
Any update ???