I want to develop a universal app for Windows Phone 8.1 which contains a local “Notification”.
What I want to do is to show all messages to the user (error, information, warnings) in a kink of toast control. Everything is done locally without going through the standard notification system. There are several system that work on Windows Phone 8:
- TOASTINET (http://www.nuget.org/packages/ToastinetWP/)
- CONDING4FUN toast prompt (https://coding4fun.codeplex.com/wikipage?title=Toast%20Prompt&referringTitle=Documentation
But it's not possible to include those libraries on windows phone 8.1 project.
Does anyone know another method to display "local" toasts?
With the help of the @msimons response and the following url : http://msdn.microsoft.com/en-us/library/windows/apps/xaml/hh868254.aspx I succeed to display my notifications.
For those who need it, here is my final method :
I tested on a universal application windows phone 8.1.
And don't forget to edit "Package.appxmanifest" and activate notifications. The capability to raise toast notifications is declared in your app's package.appxmanifest file. If you use the Microsoft Visual Studio manifest editor, simply set the Toast capable option to "Yes" in the Notification section of the Application tab.
You could use a local notification that appears when your app is running.
You'll then need to populate the XML returned by
GetTemplateContent
Supply the content of your toast in the XML DOM. The image is relevant only for Windows 8.1.
Specify it's launch parameters
Create the toast object:
and finally display the toast.
Also, If you want to use a third party control to display the toast then you could consider writing a Windows Phone 8.1 Silverlight app.