Through the Command-line Interface:
cordova plugin add https://github.com/Natalia21/phoneGapIOSPrintingPlugin.git
cordova build
## Removing the Plugin from your project
cordova plugin rm intspirit.cordova.plugin.printer
The plugin creates the object window.plugin.printer
** Below example uses print share app for printing files.
window.plugin.printer.getAvailablePriner(successCallback, errorCallback);
function successCallback(printers) {
console.log('found printers: ', printers);
}
function errorCallback(error) {
console.log(error);
}
window.plugin.printer.print('content', chosenPrinter, function() {
console.log('success');
}, function() {
console.log('error');
});
This software is released under the Apache 2.0 License.