misiio / flutter_music_kit

MIT License
11 stars 7 forks source link

The 'plugins.misi.app/music_kit/music_subscription' channel sent a message from native to Flutter on a non-platform thread #6

Open kristopher8 opened 3 months ago

kristopher8 commented 3 months ago

[ERROR:flutter/shell/common/shell.cc(1038)] The 'plugins.misi.app/music_kit/music_subscription' 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.

tannermahofski commented 2 months ago

Screenshot 2024-04-22 at 8 03 47 PM

I recently added this package to my project and I am seeing the same thing as well. I see via the flutter docs, the channel calls are supposed to happen on the main thread (above image). Im not sure where to make this change in the files tho. Anyone else face this issue?