Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue when printing on iOS Devices #52

Open
hiruworld opened this issue Sep 14, 2024 · 3 comments
Open

Issue when printing on iOS Devices #52

hiruworld opened this issue Sep 14, 2024 · 3 comments

Comments

@hiruworld
Copy link

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
Copy link
Author

Can anyone help me to fix this issue?

@hiruworld
Copy link
Author

hiruworld commented Sep 18, 2024

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

@hiruworld hiruworld changed the title Issue when printing on iPhone XS Issue when printing on iOS Devices Sep 18, 2024
@Vatanyazilimfurkan
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants