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
Febiyan
Posts: 47
Registered: ‎11-11-2009
My Device: Not Specified
Accepted Solution

Subscription URL Parameters

[ Edited ]

From this thread: http://supportforums.blackberry.com/t5/BlackBerry-Push-Development/question-about-Content-Provider-U...

 

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. :smileysad:

 

2 more questions: what is the deregistration URL? and what are the parameters that should be passed?

Please use plain text.
Developer
Febiyan
Posts: 47
Registered: ‎11-11-2009
My Device: Not Specified

Re: Subscription URL Parameters

[Bump] Can somebody answer this, please? I've got a deadline this week :smileysad:

 

Thanks in advance :smileyhappy:

Please use plain text.
Regular Contributor
mdicesare
Posts: 78
Registered: ‎04-28-2010
My Device: BlackBerry 10 Dev Alpha
My Carrier: Rogers

Re: Subscription URL Parameters

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.

Please use plain text.
Developer
Febiyan
Posts: 47
Registered: ‎11-11-2009
My Device: Not Specified

Re: Subscription URL Parameters

[ Edited ]

Thank you very much Mdicesare for the reply :smileyvery-happy: I sent kudos :smileyvery-happy:

 

So are the url and the parameter like this? Please CMIIW and if there are wrong parameter name of value :smileyhappy:

 

1st:

https://pushapi.eval.blackberry.com/mss/PD_subReg?serviceid={serviceid}&osversion={osversion}&model=...

 

Do we have to pass password as parameter too?

 

2nd:

https://pushapi.eval.blackberry.com/mss/PD_subReg?serviceid={}&param={parameter}

 

 

" The PIN is obtained automatically by the RIM infrastructure" << how RIM determine the PIN? How can it be passed?

Please use plain text.
Regular Contributor
mdicesare
Posts: 78
Registered: ‎04-28-2010
My Device: BlackBerry 10 Dev Alpha
My Carrier: Rogers

Re: Subscription URL Parameters

Yep

 

1st call:

https://pushapi.eval.blackberry.com/mss/PD_subReg?serviceid=xxxx&osversion=yyyy&model=zzzz

 

Get back the param=ssss code back as a response.

 

2nd call:

https://pushapi.eval.blackberry.com/mss/PD_subReg?serviceid=xxxx&osversion=yyyy&model=zzzz&param=ssss

 

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.

 

 

Please use plain text.
Developer
Febiyan
Posts: 47
Registered: ‎11-11-2009
My Device: Not Specified

Re: Subscription URL Parameters

[ Edited ]

Niceee~! Gotta try your solution! ^:smileyhappy:^

 

Thanks again, mdicesare. You've been a big help! :smileyvery-happy:

 

edit: I still have a few more questions, I post it below :smileyhappy:

Please use plain text.
Developer
Febiyan
Posts: 47
Registered: ‎11-11-2009
My Device: Not Specified

Re: Subscription URL Parameters

[ Edited ]

Ah, I think I forgot something :smileysad:

 

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?serviceid=xxx-xxxxxxxxxxxxxxxx&osversion=5.0.0.123...

 

I called the url using the web service C#

Please use plain text.
Regular Contributor
mdicesare
Posts: 78
Registered: ‎04-28-2010
My Device: BlackBerry 10 Dev Alpha
My Carrier: Rogers

Re: Subscription URL Parameters

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.

 

 

Please use plain text.
Developer
raquibulbari
Posts: 137
Registered: ‎09-30-2009
My Device: Torch 9800

Re: Subscription URL Parameters

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

 

 

----------------------
Press like if you find a message helpful
---------
Please use plain text.
Developer
Febiyan
Posts: 47
Registered: ‎11-11-2009
My Device: Not Specified

Re: Subscription URL Parameters

You should be using ";deviceside=false;ConnectionType=mds-******" as the connection suffix i think :smileyvery-happy:

Please use plain text.