If an iOS app crashes in the background, silent push notifications are supposed to be able to relaunch the app, and I've seen this to be true.
However, my app uses core data, so when the app re-launches in the background on a locked device, the core data resources are inaccessible until the device is unlocked.
I rely on what's in core data to process the incoming data, and so updates to the Today Widget or Apple Watch complications don't occur in a timely manner. I also rely on these updates to generate local notifications and to provide responses via Siri.
All of these interfaces are accessible to the user while the device is locked. But the core data is not.
Am I understanding this correctly, and is this the expected behavior? Any way around it?
However, my app uses core data, so when the app re-launches in the background on a locked device, the core data resources are inaccessible until the device is unlocked.
I rely on what's in core data to process the incoming data, and so updates to the Today Widget or Apple Watch complications don't occur in a timely manner. I also rely on these updates to generate local notifications and to provide responses via Siri.
All of these interfaces are accessible to the user while the device is locked. But the core data is not.
Am I understanding this correctly, and is this the expected behavior? Any way around it?