title: Notification permission gives denied always
body: <p>I am using <code>Notification.permission</code> for check whether the browser allows notification or not.</p>
  
  <p>my code for check Notification permission like below.</p>
  
  <pre><code>    // Let's check if the browser supports notifications
      if (!("Notification" in window)) {
             alert("This browser does not support desktop notification");
      }
      var prm = Notification.permission;
      if (prm == 'default' || prm == 'denied') {
            console.log("permission denied or default");
      }else{
           console.log("permission granted");
      }
  </code></pre>
  
  <p>This code is working fine in my <code>localhost</code> but when I try to use in production it will always give denied status.
  my browser settings for notification is <strong>always allows on this site</strong>. 
  <a href="https://i.stack.imgur.com/cMuAQ.png" rel="noreferrer"><img src="https://i.stack.imgur.com/cMuAQ.png" alt="enter image description here"></a>
  but I do not figure out what is the problem.
  help needed.</p>