cordova-plugin-bluetoothle 插件使用

2019-07-05 16:55:01 +08:00
 aria955

按照文档写的 使用对的是 vue+cordova 来做混合 APP xcode 报错 : init bluetooth //这是打印台结果 2019-07-05 15:53:08.049122+0800 imatrixh5app[479:118710] [CoreBluetooth] API MISUSE: <CBCentralManager: 0x2827b7880> has no restore identifier but the delegate implements the centralManager:willRestoreState: method. Restoring will not be supported 2019-07-05 15:53:08.050630+0800 imatrixh5app[479:118710] ERROR: {"line":165,"column":20} 2019-07-05 15:53:08.076212+0800 imatrixh5app[479:118710] Error in Success callbackId: BluetoothLePlugin252653612 : TypeError: callback.success.apply is not a function. (In 'callback.success.apply(null, args)', 'callback.success.apply' is undefined)

最后一个报错是一直都碰到的问题,上一个蓝牙插件报错也是这样 返回值 is not a function 上一个插件 android 使用没问题 但是 ios 12.3 连接不上

3018 次点击
所在节点    iOS
3 条回复
coloz
2019-07-05 18:23:20 +08:00
我用的 cordova-plugin-ble-central,一切正常
aria955
2019-07-05 19:01:43 +08:00
@coloz 我的 12.3 连接是正常的 但是 startNotifity( ) 没有作用 获取不到返回值了
aria955
2019-07-08 11:33:47 +08:00
有人知道吗?

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/580377

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX