mrcendre / motion

A Flutter plugin to apply a gyroscope-based motion effect to widgets.
GNU General Public License v3.0
39 stars 15 forks source link

message from native to Flutter on a non-platform thread #18

Closed Maatteogekko closed 8 months ago

Maatteogekko commented 9 months ago

In debug mode, running on a real iPhone 12 mini, I get this message in console:

The 'me.cendre.motion/gyroscope' 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

I can't reproduce it consistently and there is no effect visible in the app. Still, this may need to be addressed

mrcendre commented 8 months ago

Hi @Maatteogekko, thanks for the report !

This was indeed a known error, which is now solved in the latest plugin version (1.4.1).

Please upgrade and let me know if it solves your issue. If not, I will reopen the issue. Thank you !