I am working on push notifications through WNS and WINJS (Windows Phone 8.1). I followed this article https://msdn.microsoft.com/en-us/library/windows/apps/hh465460.aspx . Now I can not receive push notifications on my devices, but WNS servers respond to me with a status of 200 and a received message
HTTP/1.1 200 OK Content-Length: 0 X-WNS-DEVICECONNECTIONSTATUS: connected X-WNS-NOTIFICATIONSTATUS: received X-WNS-STATUS: received X-WNS-MSG-ID: 77B3599101A23AB8 X-WNS-DEBUG-TRACE: DB3WNS2010831 Strict-Transport-Security: max-age=31536000; includeSubDomains Date: Wed, 18 Mar 2015 13:58:29 GMT
My request header (looped in php):
[0] => Content-Type: text/xml [1] => Content-Length: 142 [2] => X-WNS-TTL: 3600000 [3] => X-WNS-Type: wns/toast [4] => X-WNS-RequestForStatus: true [5] => Authorization: Bearer EgAeAQMAAAAEgAAAC4AA90q2GTPfvxMbeV....
My test xml payload:
<toast> <visual lang="it-IT"> <binding template="ToastText02"> <text id="1">Hello</text> </binding> </visual> </toast>
Thus, it is obvious that my request is fine for the server, but nothing was sent to the device (neither with the closed application, nor with the running application with the corresponding event related to pushnotificationreceived). I also checked this list https://msdn.microsoft.com/en-us/library/windows/apps/dn457490.aspx#push_200_OK , but without success, it seems (to me) that everything is set up fine. Iβm literally mad at this, I donβt know where the mistake really is. Has anyone had the same problem? thank you very much
source share