Google push notifications - DOMException: Registration failed - permission denied
<p>I'm following the  (<a href="https://developers.google.com/web/fundamentals/getting-started/push-notifications/step-06?hl=en" rel="nofollow">getting started with push locations guide</a>) but am running into an error on step 6:</p>

<pre><code>undefined:1 Uncaught (in promise) DOMException: Registration failed - permission denied
</code></pre>

<p>My manifest.json file is loading correctly based on the Network tab.</p>

<p>I have entered my correct project number into manifest.json. I have tried adding other settings not mentioned in the guide:</p>

<pre><code>{
  "name": "Push Notifications codelab",
  "gcm_sender_id": "123456789",
  "gcm_user_visible_only": true,
  "permissions": [
    "gcm"
  ]
}
</code></pre>

<p>I am running my server on localhost as per the guide.</p>