SilverlightShow: Windows 8 Metro: Implementing push notifications (part 2) Comments http://www.silverlightshow.net/ Silverlight articles, Silverlight tutorials, Silverlight videos, Silverlight samples SilverlightShow.net http://www.rssboard.org/rss-specification Argotic Syndication Framework 2008.0.2.0, http://www.codeplex.com/Argotic en-US estoychev@completit.com (Emil Stoychev) Re: Windows 8 Metro: Implementing push notifications (part 2) Hi Andrea,<br /> <br />     Thank for your answer. Actually,  X-WNS-DEVICECONNECTIONSTATUS and X-WNS-NOTIFICATIONSTATUS return "connected" and "received", respectively.<br /> <br /> Anyway, I found my problem: when I sent the xml representation of the notification, I encoded it in a base64, as you show in your example. I tried not to encode it and, automagically, it worked. So, I suppose that java encode automatically the body of a request and so I do not need to encode it explicitly.<br /> <br /> I wrote these few lines hoping that they could help others that experience the same problem.<br /> <br />  Bye,<br /> <br />     Rikar <p> </p> http://www.silverlightshow.net/items/Windows-8-Metro-Implementing-push-notifications-part-2.aspx#comment8800 Rikar http://www.silverlightshow.net/items/Windows-8-Metro-Implementing-push-notifications-part-2.aspx Fri, 04 Jan 2013 13:10:50 GMT Re: Windows 8 Metro: Implementing push notifications (part 2) <p>Hi Rikar,</p> <p>It is hard to give you an answer. It seems you implemented the things correctly. I suggest you to double check the format of the notification and the content of returned http headers X-WNS-DEVICECONNECTIONSTATUS and X-WNS-NOTIFICATIONSTATUS to ensure the message has been delivered.</p> <p>Bye.</p> <p>Andrea</p> http://www.silverlightshow.net/items/Windows-8-Metro-Implementing-push-notifications-part-2.aspx#comment8783 AndreaBoschin http://www.silverlightshow.net/items/Windows-8-Metro-Implementing-push-notifications-part-2.aspx Thu, 03 Jan 2013 00:49:50 GMT Re: Windows 8 Metro: Implementing push notifications (part 2) <p>Hi Andrea, thank you for your tutorials, they are very useful.</p> <p>I have a problem with push notifications: I'm using a JAVA web service to send the notifications to the windows 8 app. I must use JAVA for the WS.</p> <p>Anyway, I can authenticate the WS and, when I send the toast and the badge notifications, I get a HTTP code of 200, so I don't think that the problem is in the server-side.</p> <p>In the client side, I can register to get an URI and I have attached an handler for the PushNotificationReceived event.</p> <p>I have associated the app with the name I have reserved in the Windows Store Developer Center and I ask to the user to allow the notifications (in fact, when i go to settings > notifications I can see that my app is enabled). I have alse modified the manifest in order to enable the toast and the tileAndBadge notification.</p> <p>The problem arises when the web server sends a notification (actually i have tried only badge and toast) to the client. The server says 200, but the client does not receive anything. I have tried to lock the screen, to send the notification with the app closed on the start screen, I have tried with the app in background in debug mode. Nothing.</p> <p>I think I am missing something but I can't see what.... what do you think?</p> <p>Thank you,</p> <p>    Rikar.</p> http://www.silverlightshow.net/items/Windows-8-Metro-Implementing-push-notifications-part-2.aspx#comment8782 Rikar http://www.silverlightshow.net/items/Windows-8-Metro-Implementing-push-notifications-part-2.aspx Wed, 02 Jan 2013 19:57:36 GMT