locked
Tile notification not working in windows 8.1 RRS feed

  • Question

  • I used this code to send a local tile notification to my app

                XmlDocument tileXml = TileUpdateManager.GetTemplateContent(TileTemplateType.TileWide310x150ImageAndText01);
                XmlNodeList tileTextAttributes = tileXml.GetElementsByTagName("text");
                tileTextAttributes[0].InnerText = "Test text";
                XmlNodeList tileImageAttributes = tileXml.GetElementsByTagName("image");
                ((XmlElement)tileImageAttributes[0]).SetAttribute("src", "http://zetice.com/picture.png");
    
                TileNotification tileNotification = new TileNotification(tileXml);
                //    tileNotification.ExpirationTime = DateTimeOffset.UtcNow.AddDays(1);
                tileNotification.Tag = "TestTag";
                TileUpdateManager.CreateTileUpdaterForApplication().Update(tileNotification);

    But this code does nothing. When i look at the app tile, i see no change. Yes i have notifications enabled.

    Weird thing is that, toast notifiction works. It's just tile notifications that doesnt work. Anyone know what the problem is?

    Friday, October 11, 2013 1:41 AM

All replies

  • I don't see an image at http://zetice.com/picture.png . Do you have the right URL? Other than that your code looks superficially correct. See Quickstart: Sending a tile update for a similar example.

    You're also setting just the wide tile, so if the user has a square one set this won't show up.

    For accessibility you should always set the alt tag on your image, but I assume that you left that out just for the example's sake.

    --Rob

    Friday, October 11, 2013 7:31 AM
    Moderator
  • When i set the Url source to this " http://cias.zetice.com/ProfilePics/Kalel400_847656054_MCDGAQPEADYLQCWGOKKL_ProfilePic.jpg "

    i don't see a notification. But  when i set it this

    " http://cias.zetice.com/DefaultPicture/male.png "

    i see a notification. Why is this? Is there  a limit on the size of the image i can use with the tile notification?

    Friday, October 11, 2013 11:21 AM
  • Friday, October 11, 2013 3:25 PM
    Moderator