Air Print Plugin for Cordova 3+
This is a cordova-ready plugin for Apple AirPrint compatability. Instructions:
-
Include the plugin via command line: cordova plugin add https://github.com/jaredgreener/AirPrintPlugin
-
Include the JS file like so: <script type="text/javascript" charset="utf-8" src="AirPrint.js"></script>
-
Call plugin like this: window.plugins.airPrint.print( "
More HTML here...
", function() { // success callback}, function() { // failure callback } );
Enjoy!