Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

BlackBerry Push Development

Reply
Developer
Posts: 230
Registered: ‎01-12-2013
My Device: z30
My Carrier: Mobile Vikings

Re: BB10 how to post to pushapi

Find that one out couple of minutes ago and now the server responds with 200 OK. But I don't get any response in my application. Is it possible to see that the push service received my message correctly? Or does 200 OK means that it is ok and will be send to the device?

These are the headers I use

POST /mss/PD_pushRequest HTTP/1.1
host: cp3696.pushapi.eval.blackberry.com
port: 443
Content-Type: multipart/related; boundary=PMasdfglkjhqwert; type=application/xml
Content-length: 640
Authorization: Basic AUTH_TOKEN

 In the mail that I received from BlackBerry, they gave me a push port. What do I have to do with that one?

______________________________________________________
BB10-OAuth: GitHub
Retired
Posts: 311
Registered: ‎08-08-2012
My Device: BlackBerry Z10
My Carrier: Rogers

Re: BB10 how to post to pushapi

There will be an HTTP response associated with the 200.

It will contain PAP XML containing the status of your push request.  It will indicate whether it was accepted for processing (not whether it was successfully delivered).

Developer
Posts: 230
Registered: ‎01-12-2013
My Device: z30
My Carrier: Mobile Vikings

Re: BB10 how to post to pushapi

Thank you so much for helping. Managed to send push messages from my nodeJs server to my application. The thing I forgot in my pap message was the attribute:

 

deliver-before-timestamp="2013-04-18T10:30:30Z"

______________________________________________________
BB10-OAuth: GitHub