diff --git a/ios/RNFirebase/analytics/RNFirebaseAnalytics.m b/ios/RNFirebase/analytics/RNFirebaseAnalytics.m index 4c412924..c7751850 100644 --- a/ios/RNFirebase/analytics/RNFirebaseAnalytics.m +++ b/ios/RNFirebase/analytics/RNFirebaseAnalytics.m @@ -5,6 +5,7 @@ #import @implementation RNFirebaseAnalytics +@synthesize methodQueue = _methodQueue; RCT_EXPORT_MODULE(); RCT_EXPORT_METHOD(logEvent:(NSString *)name props:(NSDictionary *)props) { @@ -16,7 +17,7 @@ RCT_EXPORT_METHOD(setAnalyticsCollectionEnabled:(BOOL) enabled) { } RCT_EXPORT_METHOD(setCurrentScreen:(NSString *) screenName screenClass:(NSString *) screenClassOverriew) { - dispatch_async(dispatch_get_main_queue(), ^{ + dispatch_sync(dispatch_get_main_queue(), ^{ [FIRAnalytics setScreenName:screenName screenClass:screenClassOverriew]; }); }