Posts

Post not yet marked as solved
9 Replies
Using protectedDataWillBecomeUnavailableNotification solved partially the problem as this notification does not always arrive in time as soon as the device is locked. Observing didEnterBackgroundNotification and willEnterForegroundNotification to request/terminate background execution time solved the notification delivery problem. In addition verifying that applicationState == .background in protectedDataWillBecomeUnavailableNotification makes it more stable.