- Dec 12, 2022
- 357
- 2
Before iOS 16 you were able to perform BLE scan and connect in the background using the B4i Ble Manager object from the iBLE library. Sure, an app would eventually be killed but depending on the situation you would have minutes/hours in which the application would still be able to perform its functions. Every update added new hoops you had to jump through but i always managed to find a solution.
However, since iOS 16 an application in background that is not performing a background task will be killed after a time between 10 and 30 seconds.
If you are connected to a BLE device and have declared the appropriate background modes, the app will not be killed, but you will not be able to perform scans and connects.
According to the documentation the correct way (since many iOS versions) to perform scan and connect is to use State Preservation and Restoration...
However, since iOS 16 an application in background that is not performing a background task will be killed after a time between 10 and 30 seconds.
If you are connected to a BLE device and have declared the appropriate background modes, the app will not be killed, but you will not be able to perform scans and connects.
According to the documentation the correct way (since many iOS versions) to perform scan and connect is to use State Preservation and Restoration...
برای دیدن لینک ها باید ثبت نام کنید
برای دیدن لینک ها باید ثبت نام کنید