We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Doc says to install service worker use runtime.install(options:Object), but i want the registered reg object so that i will make push manager use of it as specified in the doc https://developers.google.com/web/fundamentals/getting-started/push-notifications/step-06?hl=en , so here how i will get the .then(function(){}) after registering the serviceWorker using the runtime.
runtime.install(options:Object)
reg
.then(function(){})
The text was updated successfully, but these errors were encountered:
navigator.serviceWorker.ready.then((reg) => { // .... });
https://developers.google.com/web/updates/2015/03/push-notifications-on-the-open-web
Sorry, something went wrong.
Thanks for that doc.
No problem :-)
No branches or pull requests
Doc says to install service worker use
runtime.install(options:Object)
, but i want the registeredreg
object so that i will make push manager use of it as specified in the doc https://developers.google.com/web/fundamentals/getting-started/push-notifications/step-06?hl=en , so here how i will get the.then(function(){})
after registering the serviceWorker using the runtime.The text was updated successfully, but these errors were encountered: