-
Notifications
You must be signed in to change notification settings - Fork 363
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Android 10的连接问题 #82
Comments
请问你有解决吗 |
没有,最后发现如果连接前扫描就没问题,而不扫描直接根据mac地址去连,多连几次就出现了,pixel 2的手机表现为蓝牙重启不了,而三星手机表现为可以重启,但是还是连接不成功(重启手机就可以连接成功),目前都只是android 10 才有这个表现而已 |
你这个可能是多次连接同一个设备,然后每次都是用connectGatt,最后导致GATT资源被沾满。导致无法连接蓝牙设备。 |
改一下连接方式就可以了,这个库作者太久没维护了,一些方法需要自己去修改一下就好了 |
换个库吧 这个库太老了 高版本的都不支持后台扫描了 |
请问要换什么新库呢? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
我的app里,业务是这样的,app启动后,会启动一个定时器,这个定时器会不断的去判断保存在本地的蓝牙设备是否连接上,如果没有连接上,就直接根据保存在本地的mac地址连接(不经过扫描过程),Android 10之前的版本一直都比较顺利,从Android 10出来后,很多用户反馈蓝牙连接不上设备,我这边自己测试Android 10,不断循环一下操作:
连接上了设备之后,重启设备。
多连接十几次后,就连接不上了,然后手机的蓝牙开关可以关闭,但是打不开了,只能重启手机,大神知道这个是什么原因吗?
The text was updated successfully, but these errors were encountered: