GoogleChromeLabs / web-push-codelab

Other
556 stars 291 forks source link

Not Enabled Push Notification Button in Tab #39

Closed arnabmunshi closed 7 years ago

arnabmunshi commented 7 years ago

17548728_1176313205799662_1523089441_o 17548961_1176313219132994_462455896_o

gauntface commented 7 years ago

@arnabmunshi Can you please explain the issue.

arnabmunshi commented 7 years ago

@gauntface Thank you for replying. Actually I'm using my IPv4 address instead of localhost to check in my tab and I'm using XAMPP server. The page opens finely but not the button is not enabled. For this I have posted this issue. But later on I came to know that it is built only for HTTPS connections.

gauntface commented 7 years ago

Yes, service workers only work on sites served over HTTPS.

To test on mobile you can use chrome remote debugging. https://developers.google.com/web/tools/chrome-devtools/remote-debugging/

Going to close this issue as it's not a problem with the code lab - please reopen if you disagree.

arnabmunshi commented 7 years ago

@gauntface thanks for replying back.