From 027c09f0d5117ef01a0c892657886ddd6fd04d93 Mon Sep 17 00:00:00 2001 From: Ryan Wilson Date: Tue, 30 Oct 2018 13:53:00 -0400 Subject: [PATCH] Assign the default app before posting notifications. Although SDKs being configured should access the app through the dictionary being passed in (and soon the `FIRCoreConfigurable` protocol), the default app should be assigned before notifying SDKs that Core is ready. --- Firebase/Core/FIRApp.m | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Firebase/Core/FIRApp.m b/Firebase/Core/FIRApp.m index bc956aa4b4d..ca61abf823e 100644 --- a/Firebase/Core/FIRApp.m +++ b/Firebase/Core/FIRApp.m @@ -178,12 +178,12 @@ + (void)configureWithName:(NSString *)name options:(FIROptions *)options { @synchronized(self) { FIRApp *app = [[FIRApp alloc] initInstanceWithName:name options:options]; - [FIRApp addAppToAppDictionary:app]; - [FIRApp sendNotificationsToSDKs:app]; - if (app.isDefaultApp) { sDefaultApp = app; } + + [FIRApp addAppToAppDictionary:app]; + [FIRApp sendNotificationsToSDKs:app]; } }