ekasetiawans / flutter_bluetooth_printer_plugin

MIT License
26 stars 51 forks source link

Issue when printing on iOS Devices #52

Open hiruworld opened 1 month ago

hiruworld commented 1 month ago

flutter_bluetooth_printer 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.

hiruworld commented 1 month ago

Can anyone help me to fix this issue?

hiruworld commented 1 month ago
[ERROR:flutter/shell/common/shell.cc(1065)] The 'maseka.dev/flutter_bluetooth_printer' 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.

This is the issue I get. This is happening for most iOS devices. Sometimes it prints fine & again get the same issue. With Android this is working perfect.