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


Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.


Reply
Contributor
Posts: 14
Registered: ‎01-27-2011
My Device: Curve 8320
My Carrier: T-Mobile

How to register/subscribe the push enabled application for push service?

Hello,

 

I am using Push service SDK sample applications.

 

 

I could install both server and client side applications successfully. Server side application is pushing the data successfully.

 

 

I need to register my device to push service onto push server. It prompts username and password to subscribe.

 

I am using username as app-id and password received as a response to RIM registration process.

 

However, I get an exception indicating to verify that push content server is accessible. \

 

Any help on this is appreciated.

 

Thanks,

Anuya

 

 

 

Developer
Posts: 235
Registered: ‎11-08-2010
My Device: Not Specified

Re: How to register/subscribe the push enabled application for push service?

The username and password you are prompted for can be anything during your initial testing. The Push SDK server side sample application allows any username and password combination. In reality its not supposed to be the application id and password RIM provide you - it should be what identifes you as the user of that application on the device. In a real world application you should keep a list of your subscribers in your server side application and validate these credentials.

 

The IP and port of the server where you installed the Push Service SDK must be publically accessible from the internet for the registration to work.

 

Can you post the exact error?

Contributor
Posts: 14
Registered: ‎01-27-2011
My Device: Curve 8320
My Carrier: T-Mobile

Re: How to register/subscribe the push enabled application for push service?


I have verified following:

"The IP and port of the server where you installed the Push Service SDK must be publically accessible from the internet"

 

 

The exception details are:

 

Request to register failed. Caused by java.io.IOException: Network operation [Subscribe] failed. Make sure that Content Provider URL is accesible.

 

 

I would also like to know if I am correct in the steps I am following to register:

 

1) When I launch client appliction on device: clicking on "blackberry" main menu I see various submenus such as "register", "unregister", "suspend", "resume" etc. In order to subscribe, I use register menu which gives me above Java exception

 

Please Correct me where I am wrong.

 

- Anuya

 

 

 

 

 

 

Contributor
Posts: 14
Registered: ‎01-27-2011
My Device: Curve 8320
My Carrier: T-Mobile

Re: How to register/subscribe the push enabled application for push service?

the error code that I get is : 

rc=10026

 

What does this indicate?

Contributor
Posts: 14
Registered: ‎01-27-2011
My Device: Curve 8320
My Carrier: T-Mobile

Re: How to register/subscribe the push enabled application for push service?

The above mentioned error code is obtained when: I typed the URL that I got in logs recorded on Blackberry after the Java Exception on Registration.

URL has format like below: 

https://10.136.129.135:8443/sample-push-initiator/subscribe? and other paramaters appended to URL such as username, password, appid, OS version of handheld, model, connection type & deviceside.


I would like to know the meaning of deviceside parameter which was set to false in the URL

Also, in order to test that my push server is accessible publicly via interent, I typed the url of push server onto the browser on the handheld. I could see sample push initiator UI on the handheld.

Thanks,
Anuya

Developer
Posts: 235
Registered: ‎11-08-2010
My Device: Not Specified

Re: How to register/subscribe the push enabled application for push service?

The 10026 means authentication failed of the username and password. I mentioned in another thread that the Push SDK sample push initiator allows any username and password by default so you shouldn't be getting that error. Unless your servlet container has container managed authentication enabled?

 

New Contributor
Posts: 3
Registered: ‎02-13-2011
My Device: Not Specified

Re: How to register/subscribe the push enabled application for push service?

Hello everyone.

 

how resolvistes the problem?
i have this problem
thanks!

 

Developer
Posts: 235
Registered: ‎11-08-2010
My Device: Not Specified

Re: How to register/subscribe the push enabled application for push service?

Do you have container managed security setup on your Tomcat?

Highlighted
New Contributor
Posts: 3
Registered: ‎02-13-2011
My Device: Not Specified

Re: How to register/subscribe the push enabled application for push service?

How i can configure the server?
I am
trying sample push-enabled application in the simulator.

i have IP public and  credential resgister.

I have a error:

Content provider network command [Subscribe] failed, caused by could not find a service book entry for IPPP Command 'register' failed with error:java.io.IOException: network operation [subscribe] failed. Make sure that Content provider URL is accessible.

Executing command 'register' ..

Opening URL:

https://<ip-Public>:8443/debug-portal/subscribe? .....

 

I hope your answers

thanks.

 

Developer
Posts: 87
Registered: ‎02-20-2011
My Device: Not specified

Re: How to register/subscribe the push enabled application for push service?

hello..i get same problem..

 

Http response: rc=10026 and use Tomcat default setting from Push SDK installer..

 

------------------------------------------------------------------------------------------
1. Feel free to press the like button on the right side to thank the user that helped you.
2. Please mark posts as solved if you found a solution.