Skip to content
Advertisement

Tag: progressive-web-apps

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