Using service worker in angularjs

后端 未结 1 1973
梦谈多话
梦谈多话 2020-12-21 11:07

How we can get event fired in service worker in our angularjs app.

Here is sample code which is working and showing notification in chrome/firefox

s         


        
相关标签:
1条回答
  • 2020-12-21 11:53

    Have a read on this. Havent tested it yet but I think the general idea for the solution you are looking for is there. The title says How to Send Messages Between Service Workers and Clients, so if you manage to bridge that gap, you can pretty much tell your service worker to do whatever you want.

    0 讨论(0)
提交回复
热议问题