-
Notifications
You must be signed in to change notification settings - Fork 41
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
Move pushRegistrationManager to ServiceWorker instance? #2
Comments
See discussion on public-webapps and w3c/ServiceWorker/issues/365. Jake's suggestion (copied below) seems a very clean way of doing this, resolving the earlier concerns: navigator.serviceWorker.ready.then(function(reg) {
reg.push.register(...);
}); See also similar background sync issue: WICG/background-sync/issues/6 |
This was referenced Jul 30, 2014
Just updating John's code sample to the latest syntax: navigator.serviceWorker.ready.then(function(serviceWorkerRegistration) {
serviceWorkerRegistration.pushRegistrationManager.register().then(...);
}); |
Closed by #13 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Issue originally posted by @johnmellor at
telefonicaid/WebAPISpecs#30
See issue and discussion there, but please post new comments here.
The text was updated successfully, but these errors were encountered: