Any tips for keeping bluetooth apps running in background on iOS?

Viewed 601

I'm building an iPhone app which communicates with a BLE peripheral. I take a reading from the device and do some small computations 10 times a second. I am using the bluetooth-central declaration in info.plist.

The OS suspends the app at random times. Sometimes after a few hours, sometimes after a few minutes.

Any tips or tricks to keep it running?

1 Answers

Yes, you can do this by enabling following bluetooth feature from capabilities.

  1. External accessory communication
  2. Uses Bluetooth LE Accessories
  3. Acts as a Bluetooth LE Accessory

image

Related