I have made a Windows Phone 8.1 app using cordova what is using PushPlugin for notifications. I've successfully subscribed to channel which has given something like this:
https://db3.notify.windows.com/?token=AwYAAACgzvv%2b6pMI9lq1oUFa3HF31%....
I tried to send a simple Toast notification (see below) with PHP but the Microsoft server has given Header 400 - Bad Request answer.
HTTP/1.1 400 Bad Request Content-Length: 0 X-WNS-MSG-ID: D5DAEFC56A10C79 X-WNS-DEBUG-TRACE: DB3WNS4011233 Strict-Transport-Security: max-age=31536000; includeSubDomains WWW-Authenticate: Bearer Date: Thu, 01 Oct 2015 09:20:48 GMT
'Content-Type: text/xml'
'Accept: application/*'
"X-NotificationClass: $delay"
<?xml version="1.0" encoding="utf-8"?>
<wp:Notification xmlns:wp="WPNotification">
<wp:Toast>
<wp:Text1>test</wp:Text1>
<wp:Text2>test</wp:Text2>
</wp:Toast>
</wp:Notification>