Answer the question
In order to leave comments, you need to log in
How to update service worker?
Good afternoon, I'm trying to put push notifications on sites, the architecture is as follows:
Sites have files:
<script type="text/javascript" src="//www.gstatic.com/firebasejs/3.6.8/firebase.js"></script>
<script type="text/javascript" src="/firebase_subscribe.js"></script>
<script type="text/javascript" src="/firebase-messaging-sw.js"></script> /* зарегистрированный сервис воркер */
importScripts('https://example.com/api/js/sw.js?v='+(+new Date));
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question