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

initPrinter() hangs forever on Swift 2 Pro #14

Open
rekire opened this issue Jun 21, 2024 · 0 comments
Open

initPrinter() hangs forever on Swift 2 Pro #14

rekire opened this issue Jun 21, 2024 · 0 comments

Comments

@rekire
Copy link

rekire commented Jun 21, 2024

When I call:

await iminPrinter.initPrinter();

The call never exits. I need to call it like this:

unawaited(
  _instance.iMinPrinter.initPrinter().then((result) {
    // this is never called on the Swift 2 Pro
    debugPrint('The printers init result is $result');
  }).onError((e, st) async {
    debugPrint('Error while initializing iMin printer support: $e\n$st');
  }),
);

In the logs I see this output:

D/NeoPrinterLibrary_PrinterHelper(13977): 绑定服务成功false

However printing works anyway.

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

1 participant