BLE Background mode for secure printing

Hi,

We are developing an app for secure printing using a BLE RFID reader.

What we'd like to accomplish is the ability for a user to walk away from the printer (BLE RFID reader) for any time period (10 mins, 1 hour, or 3 hours) with the app still running background mode but out of range from the RFID reader, and walks back to the printer (BLE RFID reader) and be able to connect to the reader thus enabling printing.

We've noticed that when the phone is out of range from the BLE reader and phone auto-locks, the background scanning process is terminated after a few minutes.

Is there a way to accomplish the above? Any help is appreciated.

Thank you, Marlon

Answered by DTS Engineer in 793304022

In CoreBluetooth, when you start a scan, unless you stop the scan, destroy your CoreBluetooth objects, or user turns off Bluetooth on the device, if the app is still in the background and not terminated, the scan will run forever.

If this is not working, you are either inadvertently doing one of the above, or your code is not architected correctly.

Core Bluetooth Background Processing for iOS Apps explains in detail how to do all this correctly.

Within that document, also make sure to read and implement the recommended ways for Performing Long-Term Actions in the Background

In CoreBluetooth, when you start a scan, unless you stop the scan, destroy your CoreBluetooth objects, or user turns off Bluetooth on the device, if the app is still in the background and not terminated, the scan will run forever.

If this is not working, you are either inadvertently doing one of the above, or your code is not architected correctly.

Core Bluetooth Background Processing for iOS Apps explains in detail how to do all this correctly.

Within that document, also make sure to read and implement the recommended ways for Performing Long-Term Actions in the Background

BLE Background mode for secure printing
 
 
Q