Some Printer not Working in Capacitor plugin #7922
Unanswered
Ahmed-Sarmoum
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Description
I'm developing a Capacitor plugin in Java for printing receipts. The same code works perfectly in a native Android app with all printers, but when used in a Capacitor plugin, some printers work while others fail.
Steps to Reproduce
1- Implement printing using Printooth in the Capacitor plugin.
2- Attempt to print with different Bluetooth printers.
3- Some printers fail with the following error:
Tried using BluetoothSocket directly instead of Printooth.
Encountered this error:
Verified that the required Bluetooth permissions are granted, but the issue persists.
Expected Behavior
All printers should work the same way they do in the native Android app.
Actual Behavior
Some printers fail to connect in the Capacitor plugin, while they work fine in a native Android app.
Additional Notes
The issue seems to be specific to the Capacitor plugin environment.
Could this be related to how Capacitor handles Bluetooth permissions or connections?
Would appreciate any insights or suggestions!
Beta Was this translation helpful? Give feedback.
All reactions