How to persist notifications on outlook web application
I'm using the following function. Message persists on the Outlook Desktop application, but on the Outlook web application disappears when switching between email messages or reloading the page.
plus icon also not appear on web, which is the correct icon resolution for the web because 80x80 appears on Desktop app
const addNotificationMessage=(text)=>{
const message = {
type: Office.MailboxEnums.ItemNotificationMessageType.InformationalMessage,
message: text,
persistent: true,
icon: "Icon80",
};
Office.context.mailbox.item.notificationMessages.replaceAsync("action", message);
}