I'm using push notifications handled from a service worker.
The main motivation to use notifications was to provide actions as "Call to" or "Mail to", I though that the behaviour would be the same as clicking on a "mailto:" link.
It works using chrome on windows (launches mail app on click for example) but fails using chrome on android, resulting in a black tab with the url "mailto:..." written on it.
// Service Worker
self.addEventListener('notificationclick', function(event) {
const { contactRequest } = JSON.parse(event.notification.data);
switch(event.action) {
case 'call':
return clients.openWindow('tel:' + contactRequest.phone);
case 'mail':
return clients.openWindow('mailto:' + contactRequest.email);
}
});