aria955
V2EX  ›  iOS

cordova-plugin-bluetoothle 插件使用

  •  
  •   aria955 · Jul 5, 2019 · 3979 views
    This topic created in 2687 days ago, the information mentioned may be changed or developed.

    按照文档写的 使用对的是 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 replies  •  2019-07-08 11:33:47 +08:00
    coloz
    coloz
    Jul 5, 2019
    1
    我用的 cordova-plugin-ble-central,一切正常
    aria955
    aria955
    OP
    Jul 5, 2019
    2
    @coloz 我的 12.3 连接是正常的 但是 startNotifity( ) 没有作用 获取不到返回值了
    aria955
    aria955
    OP
    Jul 8, 2019
    3
    有人知道吗?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1101 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 23:18 · PVG 07:18 · LAX 15:18 · JFK 18:18
    ♥ Do have faith in what you're doing.