I'm currently developping an mobile application based on Cordova (version 4.0.0) for Windows Phone 8.1.
I implemented the Java code from API Java-MPNS (from github of notnoop) to send notification to my device.
When I push the notification message to MPNS, I get this error :
HTTP/1.1 400 Bad Request [Content-Length: 0, X-WNS-MSG-ID: 50267BB8627BC17D, X-WNS-DEBUG-TRACE: DB5SCH101121935, Strict-Transport-Security: max-age=31536000; includeSubDomains, WWW-Authenticate: Bearer, Date: Thu, 07 Jan 2016 09:13:01 GMT] org.apache.http.conn.BasicManagedEntity@1ab5b13
From document of Push Notification Service response codes for Windows Phone 8, this error code means that XML document or notification URI is malformed.
Here's my notification URI :
Here's the XML document (generated by Java-MPNS from Java class TileNotification):
<?xml version="1.0" encoding="utf-8"?>
<wp:Notification xmlns:wp="WPNotification">
<wp:Tile>
<wp:Count>1</wp:Count>
<wp:Title>Demo App Windows</wp:Title>
<wp:BackContent>New notification</wp:BackContent>
</wp:Tile>
</wp:Notification>
When I compare this XML document and XML document from documentation of How to send and receive Tile notifications for Windows Phone 8, I don't see any difference or error. About my notification URI, I think the link is correct.
But, what is the difference between http://db3.notify.live.net and https://db5.notify.windows.com ?
Is there anyone who already use this API ? Do you have an idea about how to fix it ?