proposals
proposals copied to clipboard
POS Printer Plugin
Some plugin to print from POS printers from Capacitor
Can you provide more details? Such as:
- Make/Model of the printer
- Exsisting API for the printer
- Ect.
Also please follow the proposal template when creating.
Hello @IT-MikeS my idea is that there is some plugin capable of printing in various types of POS printers. Something similar to https://github.com/mike42/escpos-php or https://github.com/DantSu/ESCPOS-ThermalPrinter-Android/tree/master/escposprinter
https://ionicframework.com/docs/native/printer
Just throwing my 2c at this...
I have a lot of experience in implementing printing through Capacitor/Cordova on iOS and Android for Star and Brother printers; and I don't feel like a one-size-fits-all solution is going to work very well here.
There's a big difference in how various printers communicate across different platforms and building a single plugin will no doubt end up causing a situation where the plugin gets way too bloated and way too heavy trying to do everything for everyone. This is the bane of most Cordova plugins' existence. Do one thing and do it well. So if we were thinking about this, it makes more sense to build a Star Printer plugin, and a Brother one, and a Citizen one, etc.
Some factors to consider when building a plugin like the one proposed:
Which control languages are going to be supported Esc/P, Esc/POS, Star, and some other proprietary formats. Or are we just connecting to the printer and allowing the library consumer to send through a string?
How will the plugin connect to the printer? BT or BTLE? Very different beasts with very different requirements.
Which printers will be supported? If we're connecting to the device via a serial connection, we need to understand the device classes and capabilities being supported.
The last issue is that some printers have SDKs that require OEM certificates and manufacturer specific libraries (Both Brother and Star on iOS) - so without bundling those (which might not be allowed by the TOS) it would be a half baked solution that still requires manual installation.
It feels like building specific plugins for specific devices makes more sense in this case, rather than a blanket plugin.
Hello @sta55en thanks for your input
I created one of POS printer-plugin: https://github.com/rdlabo-team/capacitor-brotherprint
I think @sta55en opinion is right. third-party library is very heavy weight. Many POS printer support plugin will be difficult to use.
https://ionicframework.com/docs/native/printer
How to integrate this in react? Is it possible?? I need to print receipes to thermal printers... Pls help. Thanks.
printing
It's possible to integrate a thermal printer in ionic + react + capacitor?? I can't find nothing on internet... If you can help me I can pay as well... :D
Yup, but you would need specific code for each brand of thermal printer. there are different printing standards, so check out ESCPOS. It is the most common one.
On Wed, May 26, 2021 at 10:03 AM Vitalie Jalbu @.***> wrote:
printing
It's possible to integrate a thermal printer in ionic + react + capacitor?? I can't find nothing on internet... If you can help me I can pay as well... :D
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/capacitor-community/proposals/issues/36#issuecomment-848641142, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALHYTN3HLAWITLCMXWYSDWDTPTBOVANCNFSM4OKW2SZQ .
@rdlabo i added your plugin to awesome-capacitor if that is useful please take time to star the repo as well :)
@vitalijalbu Hey man, I am in same situation here, i need to integrate POS therminal printer in ionic + react + capacitor... Did you find solution? What did you do ?
@vitalijalbu Hey man, I am in same situation here, i need to integrate POS therminal printer in ionic + react + capacitor... Did you find solution? What did you do ?
hi yes, we bought a license from a german company to archive that, 2 years ago...
wow, can you share a link to that company ? is that manufacturer of POS therminal you used?
@.***/capacitor-cidprint
Il giorno sab 12 ago 2023 alle 19:09 WingsDevelopment < @.***> ha scritto:
wow, can you share a link to that company ? is that manufacturer of POS therminal you used?
— Reply to this email directly, view it on GitHub https://github.com/capacitor-community/proposals/issues/36#issuecomment-1676010478, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJTAGHVWQRHGGWPU6PT2U2DXU62GHANCNFSM4OKW2SZQ . You are receiving this because you were mentioned.Message ID: @.***>
I think I also need to have somewhere a jsx file with some buttons where to activate the plugin and activate Bluetooth and make it run, will share it give me your email.
Il giorno sab 12 ago 2023 alle 19:09 WingsDevelopment < @.***> ha scritto:
wow, can you share a link to that company ? is that manufacturer of POS therminal you used?
— Reply to this email directly, view it on GitHub https://github.com/capacitor-community/proposals/issues/36#issuecomment-1676010478, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJTAGHVWQRHGGWPU6PT2U2DXU62GHANCNFSM4OKW2SZQ . You are receiving this because you were mentioned.Message ID: @.***>
[email protected] thanks alot!