Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

reliably update service worker #2638

Merged
merged 1 commit into from
Feb 18, 2020
Merged

reliably update service worker #2638

merged 1 commit into from
Feb 18, 2020

Conversation

Feiyang1
Copy link
Member

fixes #2590
It should fix any sw update issue going forward.

Copy link
Member

@jamesdaniels jamesdaniels left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@mmermerkaya mmermerkaya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for figuring it out! Such a nice fix as well.

@@ -167,6 +167,12 @@ export class WindowController implements FirebaseMessaging, FirebaseService {
scope: DEFAULT_SW_SCOPE
}
);

// The timing when browser updates sw when sw has an update is unreliable by my experiment.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

by my experiment.

This bit won't really matter to a reader in the future 😄

@Feiyang1 Feiyang1 merged commit b40d71e into master Feb 18, 2020
@Feiyang1 Feiyang1 deleted the fei-msg-sw-update branch February 18, 2020 22:57
@firebase firebase locked and limited conversation to collaborators Mar 20, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

FCM Messaging breaks in version 7.0.0 or after
5 participants