gpt4 book ai didi

ios - 我们可以在后台启动 iBeacon 发射器吗?

转载 作者:技术小花猫 更新时间:2023-10-29 10:23:28 26 4
gpt4 key购买 nike

我有一个 iPhone 应用程序,我在其中创建了一个发射器和一个接收器。但是,当屏幕锁定或应用程序被发送到后台时,发射器停止发射。

我可以在后台继续传输(也称为广告、广播)吗?

最佳答案

不幸的是,没有。 iOS 确实允许蓝牙服务的后台广告,但仅使用打破 iBeacon 广告格式的专有技术。因此,如果您的应用程序开始作为 iBeacon 传输,然后切换到后台,它的传输仍然存在,但它不再被 iBeacon 检测器接收到。参见 here了解更多信息:

...you should be aware that advertising while your app is in the background operates differently than when your app is in the foreground. In particular, when your app is advertising while in the background ...[a]ll service UUIDs contained in the value of the CBAdvertisementDataServiceUUIDsKey advertisement key are placed in a special “overflow” area; they can be discovered only by an iOS device that is explicitly scanning for them.

底线是 iOS 设备在后台时不能作为 iBeacons 传输。

编辑 4/11/2020:Apple 宣布了一项新的信标广告计划,该广告将在后台运行。参见 here了解更多信息。

关于ios - 我们可以在后台启动 iBeacon 发射器吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24164523/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com