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
New Contributor
Posts: 3
Registered: ‎03-18-2014
My Device: 9900
My Carrier: Tata Docomo

Push Notification Registration issue

I am getting rc=10011 response from BPS when registering my applicaiton for push notification. The same code used to work when I implemented it few months ago. When does the response code rc=10011 is returned. 

Highlighted
Retired
Posts: 2,559
Registered: ‎10-16-2009
My Device: BlackBerry Z10
My Carrier: Bell

Re: Push Notification Registration issue

Please see this thread which was just posted yesterday with a similar issue:

http://supportforums.blackberry.com/t5/BlackBerry-Push-Development/getting-Response-Code-10011-while...

Garett
@garettBeuk
--
Goodbye everybody!
New Contributor
Posts: 3
Registered: ‎03-18-2014
My Device: 9900
My Carrier: Tata Docomo

Re: Push Notification Registration issue

I also have a similar issue, and I am using Blackberry data plan. I have used the same code provided in the sample push application. After going through the code in ContentProviderProtocol.java I have found the following line of code which explains the code rc=10011

 

/**
* Checks content provider response and throws an exception if error code
* was returned
*/
private static void checkResult(String response) throws IOException {
if (response.equals("rc=200")) {
// success
return;
} else if (response.equals("rc=10001")) {
throw new IOException(
"The address specified is null or empty or is longer than 40 characters in length");
} else if (response.equals("rc=10011")) {
throw new IOException(
"The OS version specified is null or empty or is longer than 20 characters. "
+ "If the model specified is null or empty or is longer than 20 characters");
} else if (response.equals("rc=10002")) {
throw new IOException(
"The push application id specified is null or empty or if the push application with the given id cannot be found");
} else if (response.equals("rc=10007")) {
throw new IOException(
"A user's subscription to a push application cannot be found");
} else if (response.equals("rc=10020")) {
throw new IOException(
"The subscriber id specified is null or empty");
} else if (response.equals("rc=10021")) {
throw new IOException(
"A user's subscription to a push application is inactive, then it cannot be suspended");
} else if (response.equals("rc=10022")) {
throw new IOException(
"A user's subscription to a push application is inactive, then it cannot be resumed");
} else if (response.equals("rc=10023")) {
throw new IOException("The user name specified is null or empty");
} else if (response.equals("rc=10024")) {
throw new IOException("The password specified is null or empty");
} else if (response.equals("rc=10025")) {
throw new IOException(
"The subscription is not supported for a push application. "
+ "This will only be possible for BES push applications which have the bypass subscription flag set to true.");
} else if (response.equals("rc=10026")) {
throw new IOException(
"Authentication of the subscriber, based on the username and password they passed in, failed.");
} else if (response.equals("rc=10027")) {
throw new IOException(
"The content provider's subscription attempt (subscribe/unsubscribe/suspend/resume) failed");
} else if (response.equals("rc=-9999")) {
throw new IOException("Server internal error");
}

}

 

I am still not able to understand the actual reason for the failure.

 

http://cpXXXX.pushapi.eval.blackberry.com /mss/PD_subReg?serviceid=APPID&osversion=7.1.0.746&model=9220;deviceside=false;ConnectionType=XXXX

 

after sending this request, I get a response code as rc=10011

 

the same code used to work when  I implemented it few months ago.

Retired
Posts: 2,559
Registered: ‎10-16-2009
My Device: BlackBerry Z10
My Carrier: Bell

Re: Push Notification Registration issue

[ Edited ]

Edit: Sorry, misread your post

 

Have you tried with the stock , unchanged sample application to see if the same issue occurs?

Garett
@garettBeuk
--
Goodbye everybody!
New Contributor
Posts: 3
Registered: ‎03-18-2014
My Device: 9900
My Carrier: Tata Docomo

Re: Push Notification Registration issue

I will do the same. Please make me understand the error code rc=10011. Will be a great help. Cheers