This question pertains to backgrounding: I am trying to create an app where I will get a notification from the peripheral even when the app has been exited or suspended. I cannot find any specific documentation on how to do this, which leads me to believe that it must be obvious.
I want to do EVENT BACKGROUNDING (as opposed to session backgrounding).
I am able to successfully tell the peripheral to notify me (with [p setNotifyValue:YES forCharacteristic:characteristic]) and I do receive data in the "didUpdateCharacteristics" when the app is active.
However when I exit the app, I do not get an alert.
What am I missing? Do I need to tailor the alert somewhere or set up a local notification? I have not added any backgrounding flags to the info plist as I understand that should not be necessary for Event Backgrounding. Also, I am not closing the Bluetooth connection upon exiting the app, so the iPhone should be able to receive the notifications, even when suspended. Is there some specific command that the peripheral has to send?
|