currently i'm working on a notification option for my trash mail service but i get a problem with the url and window openig when i click on the notification in the windows 10 notification tab / center.
This is my function:
function spawnNotification(theBody, theIcon, theTitle, theLink) {
var options = {
body: theBody,
icon: theIcon
}
var notification = new Notification(theTitle, options);
notification.onclick = function(event) {
event.preventDefault(); // prevent the browser from focusing the Notification's tab
window.open(theLink, '_blank');
}
setTimeout(notification.close.bind(notification), 7000);
console.log("URL for Noti " + theLink);
}
and how i call it:
spawnNotification("In deinem Postfach max@postfach2go.de sind neue Emails eingetroffen.", "https://www.postfach2go.de/template/images/logo_small.png", "Neue eMails sind eingetroffen.", "?max@postfach2go.de");
When the Notification appears on the bottom right and i click on it, a new browser tabs open with the folling url: https://www.postfach2go.de/?max@postfach2go.de
But when i open it from the Windows 10 Notification Center / Tab, a new tab is open but it only contains the host "https://www.postfach2go.de/" but without the paramter "?max@postfach2go.de"
Does anyone know what i need to change or add so the url when opening from the Windows 10 Notification Center / Tab is: "https://www.postfach2go.de/?max@postfachgo.de" ?