0

Hi i got stuck with this problem, i can't find out how to get Toast notification from outside the application, i cant get it from inside like this :

private void ToastNotificationReceived(NotificationEventArgs e)
    {
        //liste_notifications.Items.Add("Toast : " + e.Collection["wp:Text1"]);
        if (e.Collection["wp:Text1"].Contains("Client"))
        {
            ClientNotification cn = new ClientNotification();
            cn.FromWho = e.Collection["wp:Text1"].Substring(6, 6);
            cn.Notification = e.Collection["wp:Text1"].Substring(12);
            cn.Date = DateTime.Now;
            ClientItems.Add(cn);
            PersistData();
        }

but i don't have a clue how to do it from outside. Thanks for your help

Eran
  • 387,369
  • 54
  • 702
  • 768
Linus
  • 45
  • 4

1 Answers1

0

Toast notification appears on top of the screen and no code/events are executed inside of your application

Ku6opr
  • 8,126
  • 2
  • 24
  • 31
  • For exemple i push notification from my Desktop application to my Windows Phone application this toast notification have a username i need to get that username, how can i do that? – Linus Jun 17 '12 at 19:54
  • Only if application is already running, or download `username` later when application is launched next time – Ku6opr Jun 17 '12 at 20:48
  • If you want to send user specific notifications, you have to store this informations with the phonechannel url at your registering service and use them to build the message you send to the microsoft service. – Dominik Kirschenhofer Jun 18 '12 at 06:56