V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
aria955
V2EX  ›  iOS

cordova-plugin-bluetoothle 插件使用

  •  
  •   aria955 · 2019-07-05 16:55:01 +08:00 · 3013 次点击
    这是一个创建于 1749 天前的主题,其中的信息可能已经有所发展或是发生改变。

    按照文档写的 使用对的是 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 连接不上

    3 条回复    2019-07-08 11:33:47 +08:00
    coloz
        1
    coloz  
       2019-07-05 18:23:20 +08:00
    我用的 cordova-plugin-ble-central,一切正常
    aria955
        2
    aria955  
    OP
       2019-07-05 19:01:43 +08:00
    @coloz 我的 12.3 连接是正常的 但是 startNotifity( ) 没有作用 获取不到返回值了
    aria955
        3
    aria955  
    OP
       2019-07-08 11:33:47 +08:00
    有人知道吗?
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2556 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 16:04 · PVG 00:04 · LAX 09:04 · JFK 12:04
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.