Skip to content

Commit 9ca35ac

Browse files
committed
fix(notification_manager): initialize message handling on startup
1 parent d4431a5 commit 9ca35ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/ensemble/lib/framework/notification_manager.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ class NotificationManager {
3131
if (!_init) {
3232
_initListener(
3333
backgroundNotificationHandler: backgroundNotificationHandler);
34+
initGetInitialMessage();
3435
_init = true;
3536
}
3637
}
@@ -78,7 +79,6 @@ class NotificationManager {
7879

7980
/// This is when the app is in the foreground
8081
FirebaseMessaging.onMessage.listen((RemoteMessage message) async {
81-
8282
if (!isMoEngageNotification(message)) {
8383
// Handle regular FCM notifications as before
8484
Ensemble.externalDataContext.addAll({

0 commit comments

Comments
 (0)