When I was testing locally, I found that only the title and body can be configured in web push. Can we configure multiple properties for image and link like in new notification
web-push.js
const payload = JSON.stringify({
title: "I am a test message",
body: "I am testing the text",
// icon:"11.jpeg", // How to configure it?
});
webpush.sendNotification(subscription, payload).catch(console.log);
new Notification
const options = {
body: "I am testing the text",
icon:"11.jpeg",
data: {
url: "https://example.com/review/12345",
status: "open",
},
};
const notification = new Notification("I am a test message",options);
When I was testing locally, I found that only the title and body can be configured in web push. Can we configure multiple properties for image and link like in new notification
web-push.js
new Notification