ble-state-preservation

CoreBluetooth state preservation: correct way to restore CBCentralManager

浪子不回头ぞ 提交于 2020-01-04 17:16:31
问题 what is the correct way to restore the CBCentralManager from AppDelegate when the App gets lunched with options due to a state preservation event? - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { // The system provides the restoration identifiers only for central managers that had active or pending peripheral connections or were scanning for peripherals. NSArray * centralManagerIdentifiers = launchOptions

CoreBluetooth state preservation: correct way to restore CBCentralManager

好久不见. 提交于 2020-01-04 17:15:10
问题 what is the correct way to restore the CBCentralManager from AppDelegate when the App gets lunched with options due to a state preservation event? - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { // The system provides the restoration identifiers only for central managers that had active or pending peripheral connections or were scanning for peripherals. NSArray * centralManagerIdentifiers = launchOptions

How to trigger Core Bluetooth state preservation and restoration

本小妞迷上赌 提交于 2019-11-29 02:25:55
State Preservation and Restoration Because state preservation and restoration is built in to Core Bluetooth, your app can opt in to this feature to ask the system to preserve the state of your app’s central and peripheral managers and to continue performing certain Bluetooth-related tasks on their behalf, even when your app is no longer running. When one of these tasks completes, the system relaunches your app into the background and gives your app the opportunity to restore its state and to handle the event appropriately. In the case of the home security app described above, the system would

How to trigger Core Bluetooth state preservation and restoration

冷暖自知 提交于 2019-11-27 15:12:20
问题 State Preservation and Restoration Because state preservation and restoration is built in to Core Bluetooth, your app can opt in to this feature to ask the system to preserve the state of your app’s central and peripheral managers and to continue performing certain Bluetooth-related tasks on their behalf, even when your app is no longer running. When one of these tasks completes, the system relaunches your app into the background and gives your app the opportunity to restore its state and to