BrowserPrint JavaScript and Chrome 84/85

// Expert user has replied.
M Mark Gabriel 2 years 11 months ago
124 2 0

With the latest updates to Chrome (Build 84, 85) as well as Edge, etc. BrowserPrint JavaScript no longer appears to function. We've been searching for any news/word on this and did not come across anything, other than noticing https://www.zebra.com/us/en/forms/browser-print-request-javascript.html is no longer valid. Is BrowserPrint JavaScript dead/no longer supported?
Can anyone advise on this issue and how to resolve? What we'll have to do in order to get printing from our browser-based app working? Relevant links, information would be appreciated.
-----------
More info: From Chrome's M85 release notes we found the following:
> We plan to also enable CORS for content script requests starting in M85.
We added sec-fetch-* meta data to the HTTP requests and it appears we've restored functionality. However, it'd be great to get some confirmation and/or information from someone at Zebra regarding this and if we should move away from BrowserPrint Javascript.
Thank you,
Mark

Please register or login to post a reply

2 Replies

R Raja Karuppasamy

Hello folks,
I am a newbie to work with any type of printers; so pls excuse if the terminologies I used here are different. I have a web app hosted in Salesforce cloud platform. My requirement is to add printing option enabled in my web page in Salesforce to print directly to Zebra ZD620 printer. Salesforce provides its own hybrid mobile app in both android and IOS platforms. I want this option to work in all platforms - Android, IOS and also in Windows and OSx operation systems.
I am considering BrowserPrint option so that using Javascript library in my web page, I can invoke printing via local wireless network that the printer is connected to (from Salesforce mobile app, ipads or from desktops). I have few questions before starting this with -
1. Will BrowserPrint work in all the operation systems that I mentioned?
2. When I downloaded BrowserPrint SDK, I got this "zebra-browser-print-js-v30216". Is this the latest version that I can try?
3. My understanding is BrowserPrint will work only if we install respective OS drivers in the devices
4. If driver app is mandatory, I can get driver only for Android from here: https://www.zebra.com/us/en/support-downloads/printer-software/by-reques.... This page says if I need driver for Windows & OSx, I should email Zebra customer care which I did 2 days back but no response yet. Is there any other ways to get driver software?
5. For BrowserPrint to work, is it sufficient to have Js library and respective driver in my devices?
6. Our primary requirement is to trigger print via local wireless network and from mobile devices and ipads (some cases desktops as well). If there is any other reliable technology from Browserprint, please advise.
Any suggestions or help will be greatly appreciated. Thanks in advance!
** I am posting here because I couldn't find an option in the community to start a new post. Any suggestion on this as well will be helpful :)

S Steven Si

Hi Mark,
The BrowserPrint is still supported and will continue to be supported in the future. The link to request a copy of the BrowserPrint is still valid. If the link returns an error, please make sure you clear the browser cookies, caches, etc.
Recently, Zebra has released a cloud-based API for printing, it’s called SendFileToPrinter API. This can be a great alternative to the BrowserPrint. See Use the SendFileToPrinter API for Your Cloud-Based Printing Needs for more information.
Regarding your sec-fetch-* question, I don’t think it has any impact to the BrowserPrint or vice versa. The BrowserPrint simply provides the connection between the browser and the printer. The BrowserPrint doesn’t involve in HTTP request.
Hop this helps.
Regards,
Steven Si

CONTACT
Can’t find what you’re looking for?