File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed
packages/firebase_messaging/firebase_messaging/ios/Classes Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -303,11 +303,7 @@ - (void)userNotificationCenter:(UNUserNotificationCenter *)center
303
303
NSDictionary *notificationDict =
304
304
[FLTFirebaseMessagingPlugin NSDictionaryFromUNNotification: notification];
305
305
306
- // Don't send an event if contentAvailable is true - application:didReceiveRemoteNotification
307
- // will send the event for us, we don't want to duplicate them.
308
- if (!notificationDict[@" contentAvailable" ]) {
309
- [_channel invokeMethod: @" Messaging#onMessage" arguments: notificationDict];
310
- }
306
+ [_channel invokeMethod: @" Messaging#onMessage" arguments: notificationDict];
311
307
}
312
308
313
309
// Forward on to any other delegates amd allow them to control presentation behavior.
@@ -490,7 +486,6 @@ - (BOOL)application:(UIApplication *)application
490
486
}
491
487
}];
492
488
} else {
493
- [_channel invokeMethod: @" Messaging#onMessage" arguments: notificationDict];
494
489
completionHandler (UIBackgroundFetchResultNoData);
495
490
}
496
491
You can’t perform that action at this time.
0 commit comments