-
Notifications
You must be signed in to change notification settings - Fork 0
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
Kindly contact me #1
Comments
Hi, i got the same Error here. |
Hi, @Hackbard what device are you using? I have integrated a few devices through SDK in between but for that specific issue, I ended up using the Bluetooth connection to the onboard printer as there was such provision. The SDK connection was too slow during printing. Let me know what device you are using, maybe I can help. |
I'm using POS-Terminal Android 8,1 as you find here |
Usually, the handheld POS Terminal would come with print via Bluetooth mechanism, Could you confirm that's not the case with that device. Because if it does have Bluetooth support on the printer then you can trying to use that approach and just send data to the printer using ESC Command. If you are using Ionic for your app there is a number of libraries you could use to connect to the printer via Bluetooth. Check the Bluetooth page on the device if the printer is one of the paired devices. |
Ok, sounds good. You have an advice / tutorial to help me? I'm using clean Java 😁 |
Yes exactly like that! |
So yes, i got the Bluetooth connection to the Device. |
Have you managed to connect to the printer in your code? What do you have so far if you haven't? |
using this: import android.content.BroadcastReceiver; import com.iposprinter.iposprinterservice.IPosPrinterCallback; public class IposPrinter {
} ` |
In this case, you are still trying to connect to the printer using the printer service provided. This would still work if you managed but will not be as fast as you connecting through the Bluetooth service. What I was asking you to do is to treat the printer like any other Bluetooth device that your POS Device is able to see. I would google something like All that you need is a printer address to send you text to for printing or you could also use ESC Commands to format your text and send it as a string to the printer. |
Thanks for the Tutorial i've testet it and it does the job ;) |
Kindly contact me i need help with aidl communication with printer service for a handheld pos device like the one you worked on for sunmi. I have followed you code in that plugin but doesent work for me;
error:
[app-scripts] [13:59:55] console.log: Attempt to invoke interface method 'void [app-scripts] com.iposprinter.iposprinterservice.IPosPrinterService.printerInit(com.iposprinter.iposprinterservice.IPosPrinterCallback)' [app-scripts] on a null object reference
you can check the plugin here and kindly advise: https://github.com/OutsourceNow/cordova-ocom-q1-printer
it seems i cant get the service object.
if you can help please email me: [email protected]
The text was updated successfully, but these errors were encountered: