Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Windows Phone 7 Live Tile Push Notifcations?

I'm not grasping the idea behind Windows Phone 7 live tile push notifications.

How do you have 2 projects (one in Visual Studio - C#, the other in Visual Studio - Web Developer) and they work together?

I am trying to create an application that stays active even when the user puts it in deactive state as it needs to stay constantly connected to there e-mail account.

how would I put all of this push notification code into one project? Or do I not need to?

Any help is greatly appreciated, thanks.

Edit:

What I wish to do after diving a little further into this is locally push notifications to the tiles, I don't need to go to a server, when the application updates itsself I want to be able to push a notification to the live tile if they got a new e-mail.

Is there anyway I can do this?

like image 636
Eric Avatar asked Dec 17 '25 20:12

Eric


1 Answers

In Mango, you can change Live Tile information using the ShellTile class:

ShellTile tile = ShellTile.ActiveTiles.FirstOrDefault();

// The first tile is the application tile. 
// I'm not sure if it will be there if you application is not pinned
if (tile != null)
{
    tile.Update(new StandardShellTileData
    {
            Title = "New Tile Title!",
            Count = 50
    });
}

Oddly, it doesn't appear that you can access the current shell tile properties (at least not from what I can see).

MSDN has a full list of StandardShellTileData properties that can be set.

like image 89
Richard Szalay Avatar answered Dec 19 '25 10:12

Richard Szalay



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!