I would like to know if it's possible to show the same notification when my website is in foreground, as when it is in background. I don't want to personalize the looks of the notification, I want to reuse it exactly how it is.
Right now, I'm handling the arrival of the notification using this function:
function messageReceived(payload) {
// TODO implement actions on message received
console.log(payload);
}
But I don't want to do it. Deleting this function doesn't help.
Thanks in advanced.
Aucun commentaire:
Enregistrer un commentaire