如何使用Ionic 3连接蓝牙打印机? [英] How to connect bluetooth printer using ionic 3?

查看:69
本文介绍了如何使用Ionic 3连接蓝牙打印机?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法使用以下插件与蓝牙打印机连接

I am unable to connect with bluetooth printer using below plugin

$ ionic cordova plugin add de.appplant.cordova.plugin.printer
$ npm install --save @ionic-native/printer

有什么方法可以使用ionic 3连接蓝牙打印机?

Is there any way to connect bluetooth printer using ionic 3?

推荐答案

以下是使用离子2+印刷到蓝牙收据打印机的示例.我写这篇文章是因为我遇到了同样的问题.

Here's an example of printing to bluetooth receipt printer with ionic 2+. I wrote this because I was having the same problem.

所以我尝试使用离子本机蓝牙串行连接来写入"以进行打印,并且可以正常工作.

So I tried using ionic native bluetooth serial connection to 'write' to print and it worked.

它也应该适用于离子3:

It should work on ionic 3 as well:

https://github.com/razmans/ionicBluetoothPrint

这篇关于如何使用Ionic 3连接蓝牙打印机?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆