Progressive Web App “does not work offline” error

后端 未结 2 917
梦谈多话
梦谈多话 2021-02-08 03:52

I have written a progressive web app, following all available guides and examples, but for some reason when I click the Add to homescreen button, I keep getting thi

2条回答
  •  孤独总比滥情好
    2021-02-08 04:49

    Also you need to define fetch listener in a service worker file:

    this.addEventListener('fetch', function (event) {
        // it can be empty if you just want to get rid of that error
    });
    

提交回复
热议问题