Skip to content

Commit 9976ea8

Browse files
committed
fix(core): add observer only before init
1 parent 1953eb8 commit 9976ea8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/firebase-core/index.ios.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ export class Firebase {
356356
}
357357
}
358358

359-
if (UIApplication.sharedApplication) {
359+
if (!UIApplication.sharedApplication) {
360360
Application.ios.addNotificationObserver(
361361
UIApplicationDidFinishLaunchingNotification,
362362
(notification) => {

0 commit comments

Comments
 (0)