PHP Classes


Recommend this page to a friend!

      PHP Web Push Notifications Server  >  All threads  >  error  >  (Un) Subscribe thread alerts  
Summary:Permission was denied in the past...
Author:António Lira Fernandes
Date:2021-05-25 14:45:25

  1. error   Reply   Report abuse  
Picture of António Lira Fernandes António Lira Fernandes - 2021-05-25 14:45:25
Welcome to PUSH Notifications Client
Permission was denied in the past...
Secure context: false
Notification: defined
PushManager: defined
serviceWorker: not defined
Notification.permission: denied

  2. Re: error   Reply   Report abuse  
Picture of Stefan Kientzler Stefan Kientzler - 2021-05-25 15:21:04 - In reply to message 1 from António Lira Fernandes
Apart from the bare output of the script, you neither ask a question, nor do you write at least rudimentary information about what you have done so far and what kind of environment you work in (Server, PHP-Version, Browser)...
... I still try to give reasonably useful information:

Secure context: false

This shows, that you are not working in secure context!
-> the page MUST run in a https:// environment

This is a requirement that must be met in order to be able to use the API provided by the browser at all.

For more info see and

And just take a look at the featured blog post at ...

regards, Stefan

For more information send a message to info at phpclasses dot org.