Skip to content
This repository was archived by the owner on Apr 4, 2023. It is now read-only.

Commit e85d869

Browse files
committed
#499 Fix notifications after killing
1 parent 22f1e8a commit e85d869

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

firebase.ios.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -466,6 +466,10 @@ function prepAppDelegate() {
466466

467467
firebase._addObserver(UIApplicationDidBecomeActiveNotification, function (appNotification) {
468468
firebase._processPendingNotifications();
469+
470+
if (!firebase._messagingConnected) {
471+
firebase._messagingConnectWithCompletion();
472+
}
469473
});
470474

471475
firebase._addObserver(UIApplicationDidEnterBackgroundNotification, function (appNotification) {

0 commit comments

Comments
 (0)