Hi,

We've integrated the PushwooshDK and the following are the lines of code in our App.xaml.cs

We are getting toast notifications, but when we choose 'Tile' option form the control panel and try to send, we are not receiving the notification. Are we missing anything?

Kindly suggest.

private void Application_Launching(object main, LaunchingEventArgs e) {

        IEnumerable<String> m_oEnum = new String[] {"http://www.pushwoosh.com" };
        NotificationService service = NotificationService.GetCurrent("id here..", null, m_oEnum);

        service.OnPushTokenReceived += (sender, args) =>
        {
            //tbPushToken.Text = args.ToString();
        };

        service.OnPushTokenFailed += (sender, args) =>
        {
            //tbPushToken.Text = args.ToString();
        };

        service.OnPushAccepted += (sender, args) =>
        {
            //tbPush.Text = args.ToString();
        };

        service.SubscribeToPushService();

        Debug.WriteLine("Application_Launching:");
        SetSuspendedTime();
    }
asked 20 Aug '14, 11:21
abialias's gravatar image

abialias
112

More specifically the message is not receiving when we specify the url for Front background image or Back background image in the control panel.

code :

IEnumerable<string> tileTrustedServers = new String[] { "http://sisal.it","https://sisal.it"}; NotificationService service =

NotificationService.GetCurrent(Application.Resources.Config.pushwoosh_id, null, tileTrustedServers);

and in Control panel :

Front background image : https://m.sisal.it/static/images/btn_scommesse.png

Back background image : https://m.sisal.it/static/images/btn_scommesse.png

(20 Aug '14, 14:51) abialias abialias's gravatar image

Looking further into the issue, found the following details :

The pushSDK is using Microsoft.Phone.Notification.HttpNotificationChannel.BindToShellTile(Collection <uri>) Method which is having it's own limitation as per the below link.

http://stackoverflow.com/questions/13079552/windows-phone-push-notifications-remote-uri-updates-dont-work-in-emulator

Notes from the post :

There are a few caveats related to remote images: Tiles Overview

  • Because of network variability and performance reasons, consider using local resources for Tile images.
  • https is not supported for remote images.
  • Remote images are limited to 80 KB or less or they will not be downloaded.
  • Remote images must download in 30 seconds or less or they will not be downloaded.
  • If the BackGround or BackBackGround images fail to load for any reason, none of the other properties set in the update will be changed either.

But found another way, ie using local image, if we pass the local app tile image, it will work.

For eg:

I have used Front background image : /Assests/Tiles/FlipCycleTileMedium.png and got it worked!!

permanent link
answered 21 Aug '14, 11:05
abialias's gravatar image

abialias
112

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×326
×26
×21

question asked: 20 Aug '14, 11:21

question was seen: 1,271 times

last updated: 21 Aug '14, 11:05