Similar to OPRemoteNotificationCondition, OPOperationConditionUserNotification should wait for didRegisterUserNotificationSettings from application delegate.
Currently OPOperationConditionUserNotification sets alertPresentationExclusivity and calls registerUserNotificationSettings but it does not wait for acknowledgment from operating system.
This makes condition fail during first time run when permission alert shows up.
Similar to
OPRemoteNotificationCondition,OPOperationConditionUserNotificationshould wait fordidRegisterUserNotificationSettingsfrom application delegate.Currently
OPOperationConditionUserNotificationsetsalertPresentationExclusivityand callsregisterUserNotificationSettingsbut it does not wait for acknowledgment from operating system.This makes condition fail during first time run when permission alert shows up.