BLE scanner

Hello there,

I'm a beginner in iOS app development. I'm developing a BLE scanner app to received data from IOT device with specific service ID. The application works fine in both background and the foreground.
Is it possible to design the app to be relaunched if it is not running when the specific id service is advertised ? or how do I schedule the BLE scanner to do scanning even when the app is not running?

Any suggestion is very appreciated.

Yes, it is possible, using the Bluetooth State Preservation/Restoration feature.

For more information on Bluetooth State Preservation and Restoration refer to State Preservation and Restoration in Core Bluetooth Programming Guide

Also check the notes in Technical Q&A: Conditions Under Which Bluetooth State Restoration Will Relaunch An App for the limitations of this feature.

BLE scanner
 
 
Q