diff --git a/ios/RNFIRMessaging.m b/ios/RNFIRMessaging.m index 6e44b28c3eec08c9e505e4b5bf2af21523899073..785096e62fd61cbefc3284847dff85561449d595 100644 --- a/ios/RNFIRMessaging.m +++ b/ios/RNFIRMessaging.m @@ -141,6 +141,10 @@ RCT_EXPORT_MODULE(); return @[FCMNotificationReceived, FCMTokenRefreshed, FCMDirectChannelConnectionChanged]; } ++ (BOOL)requiresMainQueueSetup { + return YES; +} + + (void)didReceiveRemoteNotification:(nonnull NSDictionary *)userInfo fetchCompletionHandler:(nonnull RCTRemoteNotificationCallback)completionHandler { NSMutableDictionary* data = [[NSMutableDictionary alloc] initWithDictionary: userInfo]; [data setValue:@"remote_notification" forKey:@"_notificationType"];