mirror of
https://github.com/ProtonMail/android-mail.git
synced 2026-05-15 09:50:40 +00:00
32ef4aa1c6
Problem: Pushes are received on time, but delegating processing to WorkManager can delay execution in background. This leads to notifications appearing only after the app is opened. Solution: - Extract push handling into ProcessPushNotification use case - Rename ProcessPushNotificationMessage to HandlePushNotification - Add feature flag to choose direct processing vs worker scheduling - Process push directly when flag is enabled - Keep Worker path as fallback when flag is disabled - Simplify ProcessPushNotificationDataWorker to delegate to use case ET-6117