dcloudio / dcloudio/uni-app

IOS 蓝牙出现notifyBLECharacteristicValueChange()后在进行蓝牙操作出现断连

Open
#4,900 0 comments 0 reactions 0 assignees View on GitHub
ios uni api
Dominant language
JavaScript
Stars
41.6k
Forks
3.7k
Avg merge
7h 6m
Merged PRs (30d)
6

Description

## 问题描述
调用uni.notifyBLECharacteristicValueChange(OBJECT)大约1-10分钟不等后,调用蓝牙操作(writeBLECharacteristicValue(OBJECT), uni.notifyBLECharacteristicValueChange(OBJECT))没有马上进行回调,几秒后回调返回【10002 | no device】,然后蓝牙断开连接。

notifyBLECharacteristicValueChange后数据频率大约是每秒 30-80次回调

目前在iPhone15 pro(17.4.1)上稳定复现,iPhone11(17.4.1) 无该问题。

## 预期结果
notifyBLECharacteristicValueChange后能正常调用其他蓝牙操作

## 实际结果
notifyBLECharacteristicValueChange后调用其他蓝牙操作出现断连

## 发行平台:
[iOS ]

## 操作系统
[windows, macOS]

Contributor guide

Open the contributing guide

Research direction

Reproduce on an iPhone 15 Pro running iOS 17.4.1 by calling notifyBLECharacteristicValueChange and then another Bluetooth operation after 1–10 minutes at roughly 30–80 callbacks per second. Compare with the iPhone 11 result and inspect the Bluetooth operation handling; done means subsequent operations return normally without a 10002 error or disconnection.

Written by the indexing model from the issue text.

Assessment

Tech stack
ios, javascript
Domain
mobile-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.