Google Chrome Push Notifications not working if the browser is closed?

前端 未结 8 1860
一生所求
一生所求 2020-12-29 05:45

It is written here that the push notifications will work even if the browser is closed, but I tested it and it is not the case. I receive push-notifications only if the brow

相关标签:
8条回答
  • 2020-12-29 06:15

    It is possible to write Chrome extension where background script can run if Chrome is allowed to run in the background (configurable in settings). It can also use GCM.

    EDIT:

    For service worker to run in the background even if no tab or window is opened there must be at least one Chrome extension with background permissions installed and Chrome must be allowed to run apps in background. Tested on Linux.

    0 讨论(0)
  • 2020-12-29 06:16

    Open Settings (in chrome)

    Do the following:

    > advanced 
        > system >
            "continue running background apps when chrome is closed" 
                 >enable
    
    0 讨论(0)
提交回复
热议问题