diff --git a/native/ios/Comm/CommIOSNotifications/CommIOSNotifications.mm b/native/ios/Comm/CommIOSNotifications/CommIOSNotifications.mm --- a/native/ios/Comm/CommIOSNotifications/CommIOSNotifications.mm +++ b/native/ios/Comm/CommIOSNotifications/CommIOSNotifications.mm @@ -119,6 +119,21 @@ ]; } +/* + Constants used un JavaScript +*/ +- (NSDictionary *)constantsToExport { + return @{ + @"FETCH_RESULT_NEW_DATA" : @"UIBackgroundFetchResultNewData", + @"FETCH_RESULT_NO_DATA" : @"UIBackgroundFetchResultNoData", + @"FETCH_RESULT_FAILED" : @"UIBackgroundFetchResultFailed" + }; +} + ++ (BOOL)requiresMainQueueSetup { + return YES; +} + /* Public methods */