From 84ed3b35fdba18d9672413563645e715a4a2ec63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B3gvan=20Olsen?= Date: Thu, 19 Oct 2017 11:26:26 +0200 Subject: [PATCH] Added requiresMainQueueSetup as required by newer RN versions --- ios/RNFIRMessaging.m | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ios/RNFIRMessaging.m b/ios/RNFIRMessaging.m index 6e44b28..785096e 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"]; -- 2.26.2