Go to file
dependabot[bot] 5d56da063d
Bump path-parse from 1.0.6 to 1.0.7
Bumps [path-parse](https://github.com/jbgutierrez/path-parse) from 1.0.6 to 1.0.7.
- [Release notes](https://github.com/jbgutierrez/path-parse/releases)
- [Commits](https://github.com/jbgutierrez/path-parse/commits/v1.0.7)

---
updated-dependencies:
- dependency-name: path-parse
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-08-10 17:52:11 +00:00
native iOS update 2019-04-04 11:52:01 -04:00
src update link os 2020-02-13 12:04:03 -05:00
www iOS update 2019-04-04 11:52:01 -04:00
.gitignore update gitignore 2019-04-04 16:00:35 -04:00
LICENSE Initial commit 2018-04-27 06:48:52 -04:00
package-lock.json Bump path-parse from 1.0.6 to 1.0.7 2021-08-10 17:52:11 +00:00
package.json update link os 2020-02-13 12:04:03 -05:00
plugin.xml update link os 2020-02-13 12:04:03 -05:00
README.md update link os 2020-02-13 12:04:03 -05:00

cordova-zebra-printer

A Cordova plugin for Zebra CPCL printers for both iOS and Android with Ionic 3 bindings. This plugin only supports Zebra models that use CPCL printing. Feel free to contribute to this project if you need to support other methods of printing. It has only been tested with Zebra QLn320 printers. Let me know if you use if sucessfully with others.

Also this now requires a minimum of Cordova 9 and cordova-ios 5.0. Current version of link_os_sdk is 1.5.1049

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