ESC POS USB Thermal Receipt Print service Version 2.1.0 onwards supports app links. This enables printing the web pages directly, skipping the print preview. This feature is most useful when you want to print directly from your web application, without leaving it.
All your web application has to do is to build "a"nchor/link tags as detailed below. If our ESC POS USB Thermal Receipt Print service is installed on the device, These print:// links are automatically recognized. when clicked/tapped and the requested content is directly printed as desired.
The changes to be made to the HTML application is very simple, when you have the content to be printed in a url, Set up an "a"nchor/link tag with the href as shown below to enable direct print in android.
You can also dynamically generate the HTML to be printed. Please check the example below. This feature is available only from app version 1.3.4 onwards
Please note : As these print:// are not recognized in non android platforms, you have to handle the situation gracefully, preferably on the server side or at least on the client side by providing alternate possibilities.
If you need any help, please write to us .