Skip to content

Commit c063147

Browse files
authored
Assign the default app before posting notifications. (#2024)
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.
1 parent dd36990 commit c063147

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Firebase/Core/FIRApp.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -178,12 +178,12 @@ + (void)configureWithName:(NSString *)name options:(FIROptions *)options {
178178

179179
@synchronized(self) {
180180
FIRApp *app = [[FIRApp alloc] initInstanceWithName:name options:options];
181-
[FIRApp addAppToAppDictionary:app];
182-
[FIRApp sendNotificationsToSDKs:app];
183-
184181
if (app.isDefaultApp) {
185182
sDefaultApp = app;
186183
}
184+
185+
[FIRApp addAppToAppDictionary:app];
186+
[FIRApp sendNotificationsToSDKs:app];
187187
}
188188
}
189189

0 commit comments

Comments
 (0)