Skip to content Skip to sidebar Skip to footer

Web Push Notifications In Chrome

I have created web push notifications and they work in Firefox ok (service worker is registered, subscription created, subscription data stored, using subscription data notificatio

Solution 1:

A assume you have a development domain with no https. Google Chrome only sends notifications when running with configured SSL.

How to bypass: For local development you can launch Chrome with the unsafely-treat-insecure-origin-as-secure option.

open -a /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome \
     --args \
     --user-data-dir=$HOME \
     --unsafely-treat-insecure-origin-as-secure=http://your-insecure-domain.dev \

Solution 2:

I have configured SSL in my application and running it with https.Till i am not getting any notifications in chrome, but in firefox and edge its working.

Post a Comment for "Web Push Notifications In Chrome"