title: angular notification not showing native popup asking permission
body: <p>I am using Angular 8 for a pwa. I added relevant modules to enable web notification. On requesting permission for notification, it is expected to show a native popup, clicking on which give us the endpoint details. But this popup is not showing and the promise is never resolved. </p>
  
  <p>I am using an express server with web-push to send notification. This server serves the angular app also. I have seen these issues, <a href="https://github.com/angular/angular/issues/29067" rel="nofollow noreferrer">freeze issue </a>, <a href="https://github.com/angular/angular/issues/30552" rel="nofollow noreferrer">pushManager issue</a>, but couldn't find a solution. I have done prod build of angular app. </p>
  
  <p>I debugged the service-worker.js file(from node_moduels/@angular/service-worker), and found that </p>
  
  <pre class="lang-js prettyprint-override"><code>this.pushManager = this.sw.registration.pipe(map((/**
     * @param {?} registration
     * @return {?}
     */
     registration =&gt; registration.pushManager)));
  </code></pre>
  
  <p>this push manager observable is used later to get endpoint data, but the execution never goes further into the pipeline.
  browser support service worker and rest of the app is working without much issues.</p>
  
  <p>This  is the code I use which is straight from the docs.</p>
  
  <pre class="lang-js prettyprint-override"><code>init() {
      this.push.requestSubscription({ serverPublicKey: &lt;my pub key&gt; })
      .then(
        (success) =&gt; {
          console.log(success);
          this.subscriptionDetails = success;
          this.http.post('http://localhost:9020/&lt;sub-endpoint&gt;', success).subscribe(() =&gt; {
            this.push.messages.subscribe(message =&gt; console.log(message));
          });
        },
        (error) =&gt; console.error(error)
      ).catch(err =&gt; console.error('requestSubscription Error: ',err));
    }
  </code></pre>
  
  <p>Neither the error nor the success got consoled, promise never resolved and the native popups asking user permission never shown. I have checked the chrome settings to see if permission already there and its not.</p>
  
  <p>Expects the code to show a native popup asking user permission for notification. Giving permission should resolve the promise and yield the endpoint data.</p>