Why is my 'add to home screen' Web App Install Banner not showing up in my web app

前端 未结 4 2013
星月不相逢
星月不相逢 2020-12-16 14:41

I\'ve created a service-worker and manifest.json file in order to display an \'add to home screen\' Web App Install Banner for Chrome Browser Users.

It

4条回答
  •  自闭症患者
    2020-12-16 15:10

    In your service worker js file add this one line of code:

    self.addEventListener('fetch', function(event) {});
    

提交回复
热议问题