Skip to content
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

无法发送弹窗 #8

Open
xuanmingdaoren opened this issue Dec 14, 2023 · 2 comments
Open

无法发送弹窗 #8

xuanmingdaoren opened this issue Dec 14, 2023 · 2 comments

Comments

@xuanmingdaoren
Copy link

给了所有的权限以后,启动后,也显示获取蓝牙权限成功,但是没法发送弹窗,苹果手机收不到。

@Sab1e-GitHub
Copy link
Owner

如果状态栏能正常显示程序运行情况,例如:@10:17:32:321 AirPods ,那么程序一定正常发送了广播包.

您还可以尝试使用WireShark抓取蓝牙广播包,以确认您的设备是否确实发送了广播包。
image

如果您发现广播包确实已经发送,但苹果设备仍然接收不到的话,请尽量缩短两设备之间的距离,或将发送设备选择为“AppleTV键盘”(AppleTV相关设备的接收成功率较高),然后重试。同时,请确保苹果设备已经打开蓝牙且苹果设备版本不宜过低(如iPhone 4)。

目前广播包接收距离问题的一直无法解决,我认为根本原因是安卓设备的广播包发送间隔时间的最低值为100ms,而Apple官方推荐值为20ms并持续发送30s,且官方note间隔时间一定要精准为推荐值,您可以将间隔时间修改为推荐值重试。

The recommended advertising pattern and advertising intervals are:

First, advertise at 20 ms intervals for at least 30 seconds

If not discovered after 30 seconds, you may change to one of the following longer intervals: 152.5 ms, 211.25 ms, 318.75 ms, 417.5 ms, 546.25 ms, 760 ms, 852.5 ms, 1022.5 ms, 1285 ms

Important: These specific intervals are the ones to be used exactly! Even the slightest deviation from these actual intervals may dramatically increase your time to discovery.

官方文档

NOTE:据悉,IOS17似乎已经修复过量弹窗问题。

@xudali33
Copy link

xudali33 commented May 9, 2024

如何修改间隔时间

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants