Post not yet marked as solved
Click to stop watching this thread.
You have stopped watching this post. Click to start watching again.
contentPostList.repliesup-voted.tooltip
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.