locked
Sending tile push notification to WP 7.8 RRS feed

  • Question

  • I have noticed a weird behavior in Windows Phone 7.8 live tile updates. After hours of debugging I find out that problem causes WideBackgroundImage declaration in push notification payload. It works on both WP 7.8 and WP 8 emulator, but does not on WP 7.8 device.

    This payload successfully updated the tile:

    <?xml version="1.0" encoding="utf-8"?>
    <wp:Notification xmlns:wp="WPNotification" Version="2.0">
    <wp:Tile Template="FlipTile">
    <wp:Title Action="Update">Title 7. 5. 2014 11:45:39</wp:Title>
    <wp:BackTitle Action="Update">BackTitle 7. 5. 2014 11:45:39</wp:BackTitle>
    <wp:BackContent Action="Update">BackContent 7. 5. 2014 11:45:39</wp:BackContent>
    </wp:Tile>
    </wp:Notification>

    And this fails to update the tile:

    <?xml version="1.0" encoding="utf-8"?>
    <wp:Notification xmlns:wp="WPNotification" Version="2.0">
    <wp:Tile Template="FlipTile">
    <wp:WideBackgroundImage Action="Update">http://feedviewer.blob.core.windows.net/previews/9296161.wp</wp:WideBackgroundImage>
    <wp:Title Action="Update">Title 7. 5. 2014 11:46:37</wp:Title>
    <wp:BackTitle Action="Update">BackTitle 7. 5. 2014 11:46:37</wp:BackTitle>
    <wp:BackContent Action="Update">BackContent 7. 5. 2014 11:46:37</wp:BackContent>
    </wp:Tile>
    </wp:Notification>

    MPNS returns HTTP 200 status code in both cases. The image is under 80 kb. Shell tile is bound like this:

    private static readonly Collection<Uri> baseUrls = new Collection<Uri> { 
        new Uri("http://feedviewer.blob.core.windows.net/"),
    };
    
    pushChannel.BindToShellTile(baseUrls);

    HttpPushNotificationChannel.ErrorOccured is not raised. Restarting the device is not helping. What could cause this problem?


    Wednesday, May 7, 2014 10:11 AM

All replies

  • What device model are you testing with?

    What is the full OS Version from settings -> about?


    Eric Fleck, Windows Store and Windows Phone Developer Support. If you would like to provide feedback or suggestions for future improvements to the Windows Phone SDK please go to http://wpdev.uservoice.com/ where you can post your suggestions and/or cast your votes for existing suggestions.

    Thursday, May 8, 2014 4:56 PM
  • Model: Nokia Lumia 800

    Operating system version: 7.10.8862.144

    Firmware revision number: 1750.0823.8858.12460

    Hardware revision number: 112.1402.2.3

    Thursday, May 8, 2014 11:23 PM
  • When you run a test with the phone, do you see a request for this resource in the server side logs? 

    To check if it may be a decoding problem, try saving that image, include it in your app, and use that version for the default Tile setting, then see if that works on the phone.


    Eric Fleck, Windows Store and Windows Phone Developer Support. If you would like to provide feedback or suggestions for future improvements to the Windows Phone SDK please go to http://wpdev.uservoice.com/ where you can post your suggestions and/or cast your votes for existing suggestions.

    Friday, May 9, 2014 3:32 PM
  • I don't use Notification Hub or Mobile Services. I'm sending this request to MPNS directly.

    When I download the image to local storage and set it as a wide tile it works.

    Friday, May 9, 2014 4:22 PM
  • I don't use Notification Hub or Mobile Services. I'm sending this request to MPNS directly.

    I mean the logs from the server which is hosting the image file. i.e. do you see a request to download that image after sending the notification?

    Eric Fleck, Windows Store and Windows Phone Developer Support. If you would like to provide feedback or suggestions for future improvements to the Windows Phone SDK please go to http://wpdev.uservoice.com/ where you can post your suggestions and/or cast your votes for existing suggestions.

    Friday, May 9, 2014 5:09 PM
  • No, I don't see any request after sending push notification.
    Saturday, May 10, 2014 12:52 PM
  • I'm not sure what would cause this difference in behavior between emulator and device given the information available.

    Have you tried to see if the image shows if you set this property to the remote Uri from within the application code? 
    (...like: http://msdn.microsoft.com/en-us/library/windowsphone/develop/jj720574(v=vs.105).aspx )


    Eric Fleck, Windows Store and Windows Phone Developer Support. If you would like to provide feedback or suggestions for future improvements to the Windows Phone SDK please go to http://wpdev.uservoice.com/ where you can post your suggestions and/or cast your votes for existing suggestions.

    Monday, May 12, 2014 5:23 PM