Lurker News

Comments (228) 67 threads

Show all comments

Showing thread 16 of 67

rexreed5 replies#
Any advice for PWA developers who are trying to make use of possibly attached hardware? I'm looking to build a POS app that needs to connect to a receipt printer and scanner, but having trouble finding support for the printer bit. Trying to avoid any pop-up dialogue that requires user confirmation.
willhackett#
You may need to look at some sort of hybrid configuration. A daemon to communicate with hardware, but the user experience built within the PWA.
KRAKRISMOTT2 replies#
If you don't need iOS, WebUSB should do the trick.
jwells891 reply#
Keep in mind that WebUSB is exclusive to Chromium-based browsers — it won’t work on Firefox or Safari, and given how Google disregarded Mozilla’s and Apple’s feedback on the spec that’s unlikely to change.

https://caniuse.com/?search=WebUSB

lib-dev1 reply#
What was apple/mozilla’s feedback?

Continue this thread — 1 reply

rexreed#
Cool - will check it out - want to make sure it will allow printing without any user prompting.
thekingshorses#
.pdfp extension adobe acrobat configured to auto print pdfp extension

I don't think there is any free/open option to scan from scanner.
The other option is to use puppeteer to print directly.
Let me know, if you figure it out.

ies7#
We use bluetooth thermal printer for a few of our out of internet travelling salesman.

Main problem is almost every other bluetooth printer type/brand need a little print layout adjustment.
If internet connection isn't an issue, you can try papercut.com or google cloud print or setup you own IPP and connect to normal printer. There are also savapage.org but papercut already work for us so haven't try that one.