proposals icon indicating copy to clipboard operation
proposals copied to clipboard

POS Printer Plugin

Open daymerfillad opened this issue 4 years ago • 16 comments

Some plugin to print from POS printers from Capacitor

daymerfillad avatar Jun 28 '20 21:06 daymerfillad

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.

IT-MikeS avatar Jun 29 '20 18:06 IT-MikeS

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

daymerfillad avatar Jun 30 '20 04:06 daymerfillad

https://ionicframework.com/docs/native/printer

daymerfillad avatar Jun 30 '20 04:06 daymerfillad

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.

sta55en avatar Jul 30 '20 20:07 sta55en

Hello @sta55en thanks for your input

daymerfillad avatar Jul 31 '20 04:07 daymerfillad

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.

rdlabo avatar Oct 06 '20 08:10 rdlabo

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.

vitalijalbu avatar May 26 '21 10:05 vitalijalbu

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

vitalijalbu avatar May 26 '21 10:05 vitalijalbu

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 .

sta55en avatar May 26 '21 13:05 sta55en

@rdlabo i added your plugin to awesome-capacitor if that is useful please take time to star the repo as well :)

riderx avatar Nov 18 '21 03:11 riderx

@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 ?

WingsDevelopment avatar Aug 12 '23 16:08 WingsDevelopment

@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...

vitalijalbu avatar Aug 12 '23 16:08 vitalijalbu

wow, can you share a link to that company ? is that manufacturer of POS therminal you used?

WingsDevelopment avatar Aug 12 '23 17:08 WingsDevelopment

@.***/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: @.***>

vitalijalbu avatar Aug 12 '23 21:08 vitalijalbu

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: @.***>

vitalijalbu avatar Aug 12 '23 21:08 vitalijalbu

[email protected] thanks alot!

WingsDevelopment avatar Aug 12 '23 22:08 WingsDevelopment