05-22-2010 03:32 AM - edited 05-22-2010 03:33 AM
I see that we have to submit service (application) id, os version, model to BPAS Registration URL http://pushapi.eval.blackberry.com/mss/PD_subReg
But is that all we have to submit? Do we have to submit the subscriber's BlackBerry PIN too? What else do we have to submit?
I'm currently developing a stand alone C# server and I can't see the BPSS source code. Sorry if the question's a bit lame.
2 more questions: what is the deregistration URL? and what are the parameters that should be passed?
Solved! Go to Solution.
05-25-2010 08:48 AM
Yes, for BPAS registration for the first call you need to pass serviceid, osversion and model as request parameters. The PIN is obtained automatically by the RIM infrastructure. Then from the response you get the 'param' parameter and issue the second call with serviceid, osversion, model and param this time.
For unregister you just have to pass serviceid. Then from the response you get the 'param' parameter and issue the second call with serviceid and param this time.
05-26-2010 03:08 AM - edited 05-26-2010 03:10 AM
Thank you very much Mdicesare for the reply I sent kudos
So are the url and the parameter like this? Please CMIIW and if there are wrong parameter name of value
Do we have to pass password as parameter too?
" The PIN is obtained automatically by the RIM infrastructure" << how RIM determine the PIN? How can it be passed?
05-26-2010 09:34 AM
Get back the param=ssss code back as a response.
There are no username and password's requried to register with the BlackBerry Push Service. They recommend you require and use and username/password when the user register's with your (content provider's) server to subscribe.
Because the registration request goes through the BIS browsing cluster within the RIM infrastructure they can obtain the PIN from the low level packets between the device and the RIM infrastructure. You don't need to deal with PIN when subscribing to the BlackBerry Push Service as part of your HTTP calls. As I said, when your user's subscribe's with your server then you would put the PIN into the HTTP request as another HTTP request parameter so you know which PIN to push to from you server-side application.
05-26-2010 09:23 PM - edited 05-26-2010 10:37 PM
Niceee~! Gotta try your solution! ^^
Thanks again, mdicesare. You've been a big help!
edit: I still have a few more questions, I post it below
05-26-2010 10:35 PM - edited 05-26-2010 10:59 PM
Ah, I think I forgot something
So this URL should be called by the device, not by my application server??
The remote server returned an error: (403) Forbidden. URL : https://pushapi.eval.blackberry.com/mss/PD_subReg?
I called the url using the web service C#
05-27-2010 09:59 AM
Correct, that URL must be called from the device. A server-side application can't subscribe a user to the BlackBerry Push Service for security reasons. Remember in an earlier post I mentioned that BlackBerry Push Service obtains the PIN from the proprietary transport packets between the device and their server. If you try and register from your server you have no way to put the PIN into the transport packets since you will just be using vanilla TCP/IP.
This is an important security consideration to ensure the user of the device is really the one subscribing to receive push notifications. Otherwise, content provider would be able to subscribe all sorts of PINs to their push service and spam users.
07-11-2010 05:06 AM
I am getting 10001 when registering device. I could browse the internet using browser and also the BISB service book is there. I found that this error happens when the pin number is not transported through header.How to resolve this? Can any one help me out