-
Notifications
You must be signed in to change notification settings - Fork 18
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
TD2120N and QL810W problems #36
Comments
The problem is likely that you have not set the "Printer Settings" correctly to be appropriate for the printer model and paper that you are using. If you look at the ObjC code for "printViaSDK" in BrotherPrinter.m, you'll see that it loads BRPtouchPrintInfo object settings from UserDefaults.
When you get to the TD2, this will have a completely different way of handling the paper.
Hope this helps! |
Thank you, it works. Thanks. |
@TristanGodal Great! Glad that helped. The iOS SDK actually has an API named "printPDFAtPath" (in v3 APIs, which is what this plugin is currently using). As Brother does not "officially" support this plugin (I support it out of courtesy), I will not modify it myself to support PDF. But, you are welcome to try yourself. You can issue a Pull Request if you are successful to add both iOS and Android. Of course, plugins will require both iOS and Android side....for Pull Request you can't do just one side. And, these modifications will require using the "native" programming languages for each platform, plus understanding the details about Cordova plugins (which I am not an expert with). On iOS side, it would be pretty easy to do:
On Android side, refer to the SDK sample app (included with SDK download from our website) to see how it handles PDF files. Then, repeat what I mentioned above for iOS on the Android specific Java code inside this plugin. Then, modify the implementation in Java per how the SDK Sample app handles each PDF page. Good luck! Cheers, |
Hello, I'm starting using this cordova plugin. I got some problems when trying to detect devices.
I'm working with Ionic 5+ and I'm just using this code :
Top of file :
In my ngOnInit():
My 2 label printers are on same network but the code above is returning an empty array.
Does anyone has an idea ?
Thanks.
EDIT :
I just achieved to detect my QL810W by modifying Info.plist on iOS.
Now when I try to print after setting the the printer, the console returns me :
Code :
Any idea ? Thanks.
The text was updated successfully, but these errors were encountered: