I am developing a google chrome extension for my website.
I want that when the user clicks on the desktop notification of google chrome, that my website opens.
So how can I handle the google chrome desktop notification click event?
Once you've selected "Yes," an email will be sent to the event's creator informing them of your answer, and if you have a Google account, the event will show up on your Google Calendar.
Open Google Calendar. Under “My Calendars,” check Reminders. In the pop-up box, click Reminder.
Notifications allow users to find out about changes to events in their calendar.
If you don't want to use an HTML notification, you can add a click event handler to the notification and call the "cancel" function.
var notification = window.webkitNotifications.createNotification(
'url', 'title', 'text');
notification.addEventListener('click', function() {
notification.cancel();
window.open('url')
})
notification.show();
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With