![](/img/trans.png)
[英]Angular service registered with container without specifying "providedIn"
[英]Angular service worker not running automatically without specifying interval
我的 SPA 在 prod 中運行,我想在部署完成時重新加載頁面。 我可以通過指定間隔每 X 分鍾檢查一次更新來完成這項工作,但這不是合適的方式。 誰能建議如何解決這個問題,讓服務人員自動告訴我的應用程序有可用更新?
只要有版本更改,您就可以發送推送通知。
您的服務人員可以檢測並相應地處理它
https://developers.google.com/web/ilt/pwa/introduction-to-push-notifications
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.