We are facing the following issue when using Microsoft.CIFramework.notifyEvent api to generate notifications with template configured as msdyn_desktopnotificationmode = 509180001 (When app is in background), it should only show the notification when the app is in background, but currently is always showing the notification.
Ex: templateExample configured as msdyn_desktopnotificationmode = 509180001;
var input = {
templateName: "templateExample",
templateParameters: {},
correlationId: "voice",
cancellationToken: "cancellationtoken123"
};
Microsoft.CIFramework.notifyEvent(input).then(
function success(result) {
console.log(result);
},
function (error) {
console.log(error.message);
}
);