title: FCM web push notification cannot click on notification link click_action
body: <p>I have added <code>click_action</code> parameters in the <code>push</code> function. Here is my sample code.</p>
  
  <pre><code>self.addEventListener("push", function(event) {
    var title = event.data.json().notification.title;
    var body = event.data.json().notification.body;
    var icon = "/assets/img/logo.png";
    var click_action =
      "http://localhost:4200/#/jobs/notification/" +
      event.data.json().data.job_no;
    event.waitUntil(
      self.registration.showNotification(title, {
        body: body,
        icon: icon,
        click_action: click_action
      })
    );
  });
  </code></pre>
  
  <p>To handle the <code>click</code> on the <code>notification</code>, defined a <code>notificationclick</code> event handler.</p>
  
  <p>For example:</p>
  
  <pre><code>self.addEventListener('notificationclick', function(event) {
    var redirect_url = event.notification.data.click_action;
    event.notification.close();
    event.waitUntil(
      clients
        .matchAll({
          type: "window"
        })
        .then(function(clientList) {
          console.log(clientList);
          for (var i = 0; i &lt; clientList.length; i++) {
            var client = clientList[i];
            if (client.url === "/" &amp;&amp; "focus" in client) {
              return client.focus();
            }
          }
          if (clients.openWindow) {
            return clients.openWindow(redirect_url);
          }
        })
    );
  });
  </code></pre>
  
  <p>But i can't get <code>click_action</code> parameter in <code>notificationclick</code> function. I want to redirect push notification to givent url in <code>click_action</code>.</p>
  
  <p>Please help me.</p>