From 4cbce715b4de65eaa8d6f2676b5f046f9ea9b606 Mon Sep 17 00:00:00 2001 From: dab246 Date: Thu, 11 May 2023 16:44:07 +0700 Subject: [PATCH] TF-1811 Store email when receive in background for Android (cherry picked from commit bdba8599afc95171124527b623812f998dc6e604) --- .../presentation/listener/email_change_listener.dart | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/features/push_notification/presentation/listener/email_change_listener.dart b/lib/features/push_notification/presentation/listener/email_change_listener.dart index 4f81194df..c02c45d86 100644 --- a/lib/features/push_notification/presentation/listener/email_change_listener.dart +++ b/lib/features/push_notification/presentation/listener/email_change_listener.dart @@ -107,6 +107,10 @@ class EmailChangeListener extends ChangeListener { } } else if (action is PushNotificationAction) { _pushNotificationAction(action.newState, action.accountId, action.userName, action.session); + + if (FcmUtils.instance.isMobileAndroid) { + _getNewReceiveEmailFromNotificationAction(action.session, action.accountId, action.newState); + } } else if (action is StoreEmailStateToRefreshAction) { if (FcmUtils.instance.isMobileAndroid) { _handleRemoveNotificationWhenEmailMarkAsRead(action.newState, action.accountId, action.session);