Enabling Print Option
The printers that are compatible to Android and iOS devices can be configured over Wi-Fi to implement the print functionality.
Android devices: Devices with Android version 4.4 (API level 19) and above come with print service plugins installed. The advantage of Android devices over iOS devices is that in addition to supporting physical printers, it is also possible to save printed output to your Google Drive account or locally as a PDF file on the Android device. It also supports cloud-hosted services such as Google Cloud Print.
iOS devices: Printers that support AirPrint technology must be configured for the iOS devices. AirPrint is an Appleâ„¢ technology that helps you create full-quality printed output without the need to download or install drivers. AirPrint is built in to many printer models from most popular printer manufacturers. AirPrint printers are available for the following devices when using the latest version of iOS:
- iPad (all models)
- iPhone (3GS or later)
- iPod touch (3rd generation or later)
To enable the print option in your hybrid apps, you must perform the following steps:
- Install de.appplant.cordova.plugin.printer and cordova-plugin-inappbrowser plugins from Cordova. The cordova-plugin-inappbrowser fetches the data from the app and sends it to the HTML page (the HTML page is hidden). The HTML page triggers the print preview page through the de.appplant.cordova.plugin.printer plugin.
- To configure the printers in wireless mode, refer the following links:
For Android devices
-Â https://www.androidcentral.com/how-print-your-android-phone-or-tablet
-Â https://www.howtogeek.com/165778/everything-you-need-to-know-about-printing-from-your-android-phone-or-tablet/
-Â http://techlogon.com/2012/01/30/how-to-print-from-android-tablet-or-phone/
For iOS devices
-Â https://support.apple.com/en-in/HT201387