Currently i have requirement to show image inside the desktop notification body but I am not sure is it possible or not -
notification = new Notification("title", "user1"), {
icon: baseUrl + '/image/icon.png',
body: "message" // here i want add my custom image
});
if possible then i need the way to implement it.
you can use base64 in the icon property
new Notification('name',{icon:/*base64 url*/})
here is a site the convert images to base64
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With