Ionic 2 application to print via Sunmi V1

≯℡__Kan透↙ 提交于 2019-12-03 21:52:06

i found a new plugin created by labibramadhan. Thanks labib

you can find the plugin here

https://github.com/labibramadhan/cordova-sunmi-inner-printer

First, install by typing ionic

cordova plugin add https://github.com/labibramadhan/cordova-sunmi-inner-printer.git

Then, use it on your cordova javascript codes by calling:

window.sunmiInnerPrinter.printOriginalText("Hello World!")

window.sunmiInnerPrinter.[methods available on here]

https://github.com/labibramadhan/cordova-sunmi-inner-printer/blob/master/www/innerprinter.js

Thank you

"Sunmi printer itself is not a network printer, web applications can not communicate directly with the printer, you need to accept data on the android applications" - From the documents available in their site. (I also contacted their support team but there was no proper reply)

As of now it doesn't support, so I am using github.com/shangmisunmi/SunmiPrinterDemo as example and developing the application in Android instead of ionic 2.

According to the documentation is not that easy:

http://docs.sunmi.com/htmls/index.html?lang=en##V1%20Docs%20&%20Resources

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!