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

flutter: capabilities.length is already loaded #55

Open
adarshwebcastle opened this issue Oct 30, 2024 · 0 comments
Open

flutter: capabilities.length is already loaded #55

adarshwebcastle opened this issue Oct 30, 2024 · 0 comments

Comments

@adarshwebcastle
Copy link

When printing on iOS, this error is displayed:

flutter: capabilities.length is already loaded

This error occurs because the result variable doesn't contain any data, making it difficult to determine if the print operation was successful.

try {
        List<int> ticket = await generateKOT();
        result = await PrintBluetoothThermal.writeBytes(ticket);
       // the below code below won't execute due to this error.
        if (result) {
          showToast("Token generated successfully");
        } else {
          showToast(
              "Token generation failed, Please check the printer connection and try again");
        }
      } catch (e) {
        print("print test error: $e");
}
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