web-push-libs / web-push-csharp

Web Push library for C#
Mozilla Public License 2.0
429 stars 108 forks source link

Push notification Click Event not firing #89

Closed GunaUser closed 2 years ago

GunaUser commented 2 years ago

We received the notification in the Firefox & Chrome browser but we couldn't trigger the Click event in the notification. When we click on the Push notification , it simple close the notification rather than triggering the click event.

Environment : Asp.net core 3.1

coryjthompson commented 2 years ago

Hi,

This library is for the sending of push notifications and doesn't handle the receiving of notifications.

I would recommend looking into the documentation here: https://developer.mozilla.org/en-US/docs/Web/API/Notification/onclick

Note that this will only work in secure contexts.