flutter-plugins icon indicating copy to clipboard operation
flutter-plugins copied to clipboard

[audio_streamer]: handleInterruptions crashes app on iOS

Open halldorlogi opened this issue 4 years ago • 2 comments

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

  1. Play audio with https://pub.dev/packages/just_audio using https://pub.dev/packages/audio_session for interruption handling.
  2. 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.

image image

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

halldorlogi avatar Jan 19 '21 14:01 halldorlogi

any updates on this issue?

Felixduelmer avatar Jun 17 '21 07:06 Felixduelmer

Any update ???

devibrahimkarahan avatar Nov 12 '21 14:11 devibrahimkarahan