Used to Create Windows 8.1/10 or Windows Phone 8.1/10 Tile, Toast and Badge Notification XML.
GPL-2.0 License
Portable Class Library (PCL) version of the NotificationsExtensions NuGet Packages. Used to Create Windows 8.1/10 or Windows Phone 8.1/10 Tile, Toast and Badge Notification XML. This package is intended for use, instead of the following NuGet packages:
This project helps to create XML representing Tile, Toast and Badge notifications on the Windows 8.1/10 and Windows Phone 8.1/10 platforms. You can take a look at the template catalogue to see the types of templates available.
It's useful when trying to send notifications from the server side using Azure Mobile Services .NET Backend or some other .NET based push notification. When you want to create notification XML in a standard .NET project and not a WinRT project.
NotificationsExtensions.Portable is available on NuGet. Simply follow the instructions below:
PM> Install-Package NotificationsExtensions.Portable
All praise goes to the above two projects and the Microsoft developers who built them. The only changes I made to the code was to switch from XmlDocument to XDocument, remove a few WinRT specific references and stick it into a Portable Class Library (PCL).
var tileContent = TileContentFactory.CreateTileSquare150x150Text01();
tileContent.TextHeading.Text = "Hello!";
tileContent.TextBody1.Text = "One";
tileContent.TextBody2.Text = "Two";
tileContent.TextBody3.Text = "Three";
XmlDocument xmlDocument = new XmlDocument();
xmlDocument.LoadXml(tileContent.ToString());
TileUpdater tileUpdater = TileUpdateManager.CreateTileUpdaterForApplication();
tileUpdater.Update(new TileNotification(xmlDocument));