cph-cachet / flutter-plugins

A collection of Flutter plugins developed by CACHET
550 stars 675 forks source link

audio_streamer 4.1.1 #975

Open DaveHineman opened 5 months ago

DaveHineman commented 5 months ago

Describe the bug

When the app is launched, using the 'example' code, the console gives an error message:

Installing and launching... 35.9s [ERROR:flutter/shell/common/shell.cc(1055)] The 'audio_streamer.eventChannel' channel sent a message from native to Flutter on a non-platform thread. Platform channel messages must be sent on the platform thread. Failure to do so may result in data loss or crashes, and must be fixed in the plugin or application code creating that channel. See https://docs.flutter.dev/platform-integration/platform-channels#channels-and-platform-threading for more information.

It appears that the actual functionality of the audio_streamer plugin is working, but some iOS requirement about event channels has changed and needs to be updated. This is the second audio plugin I have encountered with this problem.

To Reproduce

Run the example code or create a new Flutter app using example/main.dart as the main.dart file.

Expected behavior

I expect the plugin to not generate error messages.

Actual behavior

Error message shown in terminal when launching app.

Screenshots

If applicable, add screenshots to help explain your problem.

Flutter doctor

Doctor summary (to see all details, run flutter doctor -v): [✓] Flutter (Channel stable, 3.22.1, on macOS 14.5 23F79 darwin-arm64, locale en-US) [✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0) [✓] Xcode - develop for iOS and macOS (Xcode 15.4) [✓] Chrome - develop for the web [✓] Android Studio (version 2021.3) [✓] VS Code (version 1.89.1) [✓] Connected device (4 available) [✓] Network resources

Additional information

These messages are new because of something in Xcode 15.4 - I have seen a few Stack Overflow reports mentioning this, but a solid solution is needed.

sharmaruchi30 commented 5 months ago

Hi,

I'd like to contribute to this project by working on this issue. I have fixed a similar issue on another project and I believe I can help resolve this.

Thank you.