Go to file
2019-03-08 16:27:17 -05:00
native tested implementation with ionic native bindings 2018-05-05 22:33:38 -04:00
src android fix - return error from print 2018-05-30 11:20:35 -04:00
www tested implementation with ionic native bindings 2018-05-05 22:33:38 -04:00
.gitignore add gitignore to the correct folder... 2018-04-27 07:59:41 -04:00
LICENSE Initial commit 2018-04-27 06:48:52 -04:00
package-lock.json update to gulp 4 2019-03-08 16:27:17 -05:00
package.json update to gulp 4 2019-03-08 16:27:17 -05:00
plugin.xml update package version 2018-05-30 11:21:08 -04:00
README.md update instructions in readme 2018-05-07 14:05:08 -04:00

cordova-zebra-printer

A Cordova plugin for Zebra printers for both iOS and Android with Ionic 3 bindings

Get from npm

cordova plugin add ca-cleversolutions-zebraprinter

or get the latest version from git

cordova plugin add https://github.com/cleversolutions/cordova-zebra-printer.git

To use with Ionic 3

Add the Ionic 3 bindings to your app.module.ts file

import { ZebraPrinter } from 'ca-cleversolutions-zebraprinter/native';
...
providers: [
    ZebraPrinter,
    ...

Then inject the ZebraPrinter into the constructor of the class where you wish to use it for example

constructor(public navCtrl: NavController, protected zebraPrinter:ZebraPrinter) {
    console.log(">>>>>> Home Constructed <<<<<<<")
  }

  protected discover(){
    console.log("Now Discover");
    this.zebraPrinter.discover().then(result => {
      console.log(result);
    }).catch(err => {
      console.error(err);
    });
  }