PHP Classes

Chrome problem

Recommend this page to a friend!

      PHP Web Push Notifications Server  >  PHP Web Push Notifications Server package blog  >  How to Use a PHP Push...  >  All threads  >  Chrome problem  >  (Un) Subscribe thread alerts  
Subject:Chrome problem
Summary:You do not receive notification with Chrome closed.
Messages:2
Author:Rodolfo
Date:2023-02-04 02:36:25
 

  1. Chrome problem   Reply   Report abuse  
Picture of Rodolfo Rodolfo - 2023-02-04 02:36:25
In Chrome you receive notifications when the browser is open, but if it is closed you do not receive notifications. Is there any solution?

  2. Re: Chrome problem   Reply   Report abuse  
Picture of Stefan Kientzler Stefan Kientzler - 2023-02-04 12:54:09 - In reply to message 1 from Rodolfo
Hi Rodolfo,

This is not a browser-specific problem but is simply due to the principle of push notifications. The service worker that is registered at subscription is just JS code that has to be executed by the browser in the background in order to be able to receive the notifications - since this is not an independent background process of the operating system, the browser must also be running in order to to be able to run this code!