Clicking the action part of @angular/service-worker push notifications
问题 I've been trying to redirect users to the "action" part of Webpush coming from the backend (PHP). return (new WebPushMessage) ->title('Title') ->icon('icon.png') ->body('Body Msg') ->action('Open Notification', 'open_notification') ->data(['id' => $notification->id,'url'=>'http://somewhere']); Default service workers use: self.addEventListener('notificationclick', function(event) { console.log('On notification click: ', event.notification.tag); event.notification.close(); // This looks to see