ekasetiawans / flutter_bluetooth_printer_plugin

MIT License
26 stars 53 forks source link

Issue when printing on iOS Devices #52

Open hiruworld opened 2 months ago

hiruworld commented 2 months 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 2 months ago

Can anyone help me to fix this issue?

hiruworld commented 2 months 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.

Vatanyazilimfurkan commented 1 week ago

I have the same issue. I embedded the package directly into my project to fix the thread error, but I still can't get proper output.