I am building a notification service and I am currently facing an issue when trying to display any kind of image in it.
I am using Microsoft.Toolkit.Uwp.Notifications
and below is the code I am using to show build and show the notification.
static class NotificationTemplate
{
public static ToastContentBuilder HelpDesk(string main_payload, string additional_data, string type)
{
return new ToastContentBuilder()
.AddArgument("type", "helpdesk")
.AddArgument("select", main_payload)
.AddText("Incoming ticket", AdaptiveTextStyle.Title)
.AddText(type, AdaptiveTextStyle.Header)
.AddAttributionText(additional_data)
.AddAppLogoOverride(new Uri("https://cdn4.iconfinder.com/data/icons/the-weather-is-nice-today/64/weather_11-64.png"))
.AddButton(new ToastButton()
.AddArgument("take", main_payload)
.SetContent("TAKE"))
.AddButton(new ToastButton()
.AddArgument("close", main_payload)
.SetContent("CLOSE"));
}
}
The image I use in the Uri
is valid(a test link, not the actual thing) and is shown when opening the link in a browser.
Below is a screenshot of the shown notification:
I am running Windows 10
build 19045.3324