收藏
回答

wx.getConnectedBluetoothDevices部分IOS设备取不到已经连接的设备?

{"benchmarkLevel":-1,"language":"zh_CN","wifiEnabled":true,"safeArea":{"bottom":810,"height":763,"top":47,"width":390,"left":0,"right":390},"bluetoothAuthorized":true,"bluetoothEnabled":true,"fontSizeScaleFactor":1,"deviceOrientation":"portrait","phoneCalendarAuthorized":false,"notificationSoundAuthorized":true,"locationAuthorized":true,"screenHeight":844,"system":"iOS 14.8.1","version":"8.0.18","windowHeight":753,"fontSizeSetting":17,"statusBarHeight":47,"locationReducedAccuracy":false,"pixelRatio":3,"windowWidth":390,"notificationBadgeAuthorized":true,"notificationAuthorized":true,"model":"iPhone 12<iPhone13,2>","batteryLevel":73,"locationEnabled":true,"screenWidth":390,"screenTop":91,"microphoneAuthorized":true,"albumAuthorized":true,"cameraAuthorized":true,"notificationAlertAuthorized":true,"brand":"iPhone","platform":"ios","SDKVersion":"2.23.4","enableDebug":false,"devicePixelRatio":3,"host":{"env":"WeChat","appId":"","version":402657855},"mode":"default"}

回答关注问题邀请回答
收藏

2 个回答

  • Demons
    Demons
    2022-07-29

    请具体描述问题出现的流程,并提供能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。

    2022-07-29
    有用
    回复
  • Captain · 徐
    Captain · 徐
    2022-10-12
    IOS需要加入services参数,如下:
    
    wx.getConnectedBluetoothDevices({
      services: ['FFFA'],
      success (res) {
        console.log(res)
      }
    })
    


    2022-10-12
    有用
    回复
登录 后发表内容