PimpMyLog icon indicating copy to clipboard operation
PimpMyLog copied to clipboard

Chrome - browser notifications

Open slaFFik opened this issue 6 years ago • 2 comments

I have enabled notifications in Chrome for the domain where Pimp is installed, but PimpMyLog still shows a read message.

image

slaFFik avatar Nov 08 '17 12:11 slaFFik

Obviously, notifications are not working

slaFFik avatar Nov 08 '17 12:11 slaFFik

I had the same problem. I solved it by switching to HTTPS.

I found this out by calling Notification.requestPermission(); in the Chrome dev console which reported:

[Deprecation] The Notification API may no longer be used from insecure origins. You should consider switching your application to a secure origin, such as HTTPS. See https://goo.gl/rStTGz for more details.

I've not checked the source code, but I suspect this is the reason why notifications don't work over HTTP.

If this is the case, then the error message should be updated to mention HTTPS.

Cheers Stephen

stephen-hill avatar Nov 15 '17 12:11 stephen-hill