aria955
V2EX  ›  iOS

cordova-plugin-bluetoothle 插件使用

  •  
  •   aria955 · Jul 5, 2019 · 3710 views
    This topic created in 2529 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
        1
    coloz  
       Jul 5, 2019
    我用的 cordova-plugin-ble-central,一切正常
    aria955
        2
    aria955  
    OP
       Jul 5, 2019
    @coloz 我的 12.3 连接是正常的 但是 startNotifity( ) 没有作用 获取不到返回值了
    aria955
        3
    aria955  
    OP
       Jul 8, 2019
    有人知道吗?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3001 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 36ms · UTC 13:12 · PVG 21:12 · LAX 06:12 · JFK 09:12
    ♥ Do have faith in what you're doing.