I am writing an app that should be able to connect to a Ble device and receive update for one of the characteristics.
I am able to discover the device I want to connect to, connect to it, and register for notifications on the characteristic I am interested in.
Every time the app receives an update for this characteristic it will send the value to a server via an http call.
Everything is working fine in the foreground but as soon as I background my app, it stops receiving the updates. I added
<key>UIBackgroundModes</key>
<array>
<string>bluetooth-central</string>
<string>bluetooth-peripheral</string>
</array>
to my plist file. I am testing on an iPhone6 plus running iOS 9.3. Developing with Xcode 8 and swift 2.3. Notifications are being sent every 10 seconds by the Ble device but the app won't handle the notifications in the bakground.