I am creating a Chrome extension and I am using the Webkit notifications API. I need to show a link in the notification, but the problem is that now Webkit HTML notifications are deprecated, so I only can use notifications with a simple message. I mean, one year ago I could have created a Wbkit HTML notification and include the "a" element, but now I can't.
Is there a way to show a link in a Webkit notification? Thanks.
To make a webkit notification a link, do this (I'm using jQuery for events just because it's easier):
Yes, you can show, check this code as a reference.
manifest.json
Registered background page and permissions needed for notifications
background.js
Created a HTML Notification
notification.html
Added script tag to avoid CSP
notification.js
Just pointed a notification for click, can be used for extending any functionality.
References