蓝牙背景:定期唤醒应用程序(每 15 分钟)

问题描述 投票:0回答:0

我目前正在使用 BLE 设备进行项目。每 15 分钟,设备会向应用程序发送一个状态。 当应用程序处于后台状态时,此设备发送的请求会唤醒应用程序。 根据苹果文档,应用程序只能在 10 秒左右执行后台任务:https://developer.apple.com/library/archive/documentation/NetworkingInternetWeb/Conceptual/CoreBluetooth_concepts/CoreBluetoothBackgroundProcessingForIOSApps/PerformingTasksWhileYourAppIsInTheBackground.html

问题是: 系统是否允许在后台进行此行为? 它不会杀死应用程序吗? 每次应用程序唤醒时我们有 10 秒吗?

ios swift bluetooth background ios-lifecycle
© www.soinside.com 2019 - 2024. All rights reserved.