Skip to content
Advertisement

Tag: service-worker

Two service workers for one domain

I have a web application that is currently using AppCache for offline storage. I am trying to convert this app to use Service Workers instead. I have used this source as the basis for my Service Worker, except that the Service Worker is being built using PHP so that the array of files to be cached is dynamically generated. The

PHP successful webpush not triggering push event listener in SW

I would like to implement push notifications to a website, but I can’t trigger push event with PHP and web push library, even though it seems that message is sent successfully. I’ve tried to trigger the event from the console(chrome), and It works. Service worker: Php endpoint(push.php): My javascript: Service worker is registered successfully, I can ask for user permission

Advertisement