You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tech Debt has been increasing, and we've reached a point in which both PushNotificationsManager and InteractiveNotificationsManager call each other.
We must:
Review all the things
Drop applicationState usage
Definitely drop @objc
Ideally speaking, have 3 classes to deal with the use cases we've got:
Push Notification Received: The document arrived. Used by the AppDelegate
Push Notification Pressed: User interaction was detected. Used by UNUserNotificationCenter
(2) and (3) may need to run the same code in few specific scenarios such as "Push Auth Received" while the app was in foreground, or "Push Auth was pressed".
Description:
We need to clean and modernize our Push Notifications Stack:
applicationState != .backgroundInteractiveNotificationsManagerto encapsulate handling of Push Notifications with multiple interactions (Like / Approve / Etc)Details:
Tech Debt has been increasing, and we've reached a point in which both PushNotificationsManager and InteractiveNotificationsManager call each other.
We must:
applicationStateusage@objcPush Registration: Registering / requesting permissionsPush Notification Received: The document arrived. Used by the AppDelegatePush Notification Pressed: User interaction was detected. Used by UNUserNotificationCenter