Go to file
2018-05-07 13:55:55 -04:00
native tested implementation with ionic native bindings 2018-05-05 22:33:38 -04:00
src android is working 2018-05-07 13:12:33 -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 initial checkin 2018-04-27 06:54:16 -04:00
package.json tested implementation with ionic native bindings 2018-05-05 22:33:38 -04:00
plugin.xml fix goof in plugin spec 2018-05-07 13:55:55 -04:00
README.md fixes after more testing 2018-05-06 00:18:03 -04:00

cordova-zebra-printer

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

To use with Ionic 3

I've not published this to cordova plugin registry yet so clone this repo somewhere then in your project ionic cordova plugin add /path/to/this/plugin

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);
    });
  }