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
Contributor
Posts: 40
Registered: ‎05-12-2010
My Device: multiple devices
My Carrier: multiple simcards
Accepted Solution

Push registration returns rc=10001 error when not on Wifi

i have a client blackberry app which makes use of the client sample code... it registers and then receives push messages... it all works

 

but if i am not on wifi, only connected via the provider.. then the registering returns  rc=10001 errorr which resutls in an exception .

 

it uses the following url to register;

http;//pushapi.eval.blackberry.com/mss/mss/PD_subReg

 

 

4412:[ERROR]-Could not register for push messages: java.io.IOException: BPAS server rejected registration. Details: response code - rc=10001

 


4412:[ERROR]-Could not register for push messages: java.io.IOException: BPAS server rejected registration. Details: response code - rc=10001

 

where are these error code documented.. in the source i can only see the following;

 

 

    private static final String REGISTER_SUCCESSFUL = "rc=200";

    private static final String DEREGISTER_SUCCESSFUL = REGISTER_SUCCESSFUL;

    private static final String USER_ALREADY_SUBSCRIBED = "rc=10003";

    private static final String ALREADY_UNSUSCRIBED_BY_USER = "rc=10004";

    private static final String ALREADY_UNSUSCRIBED_BY_PROVIDER = "rc=10005";

 

BlackBerry Development Advisor
Posts: 15,784
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: Push registration returns rc=10001 error when not on Wifi

Go to Options, Advanced Options, Browser, change the default browser to Internet Browser and try to browse somewhere.  Are you able to?  If not, please check with your service provider to verify that you have access to the BlackBerry Internet Service.

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Contributor
Posts: 40
Registered: ‎05-12-2010
My Device: multiple devices
My Carrier: multiple simcards

Re: Push registration returns rc=10001 error when not on Wifi

The question was: what does this error code mean?

 

From your reaction i think it is: No sim installed / Sim does not have a BIS subscription.

 

Is that true?

 

I got the error rc=10001 also when i had no simcard installed.

 

However with a simcard with BIS it works as follows:

connected via:

wifi & 3g -> subscribe work, push works

wifi & 3g -> subscribe works,   then after i disable wifi, push still works

only 3g -> registration returns 10001 error code

BlackBerry Development Advisor
Posts: 15,784
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: Push registration returns rc=10001 error when not on Wifi

It sounds like an account configuration or service book issue.  On the BlackBerry Smartphone go to Options, Advanced Options, Service Book and verify that you have an entry called "Blackberry Internet Browsing Service" or "BIS-B".  This service record may be missing or invalid.

 

You can send this service record to yourself by logging into your BlackBerry Internet Service account and pressing the "Send Service Books" button found under Help.

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Contributor
Posts: 40
Registered: ‎05-12-2010
My Device: multiple devices
My Carrier: multiple simcards

Re: Push registration returns rc=10001 error when not on Wifi

You still havent anwsered this question:

what does the error rc=10001 mean.. I mean... my application should handle it nicely. If the server returns rc=10001 then i have to know what that means.

 

I will look into your suggested solution. But again. please give me a textual description of error rc=10001.

 

Thanks for your help. It is greatly appreciated.

BlackBerry Development Advisor
Posts: 15,784
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: Push registration returns rc=10001 error when not on Wifi

The 1001 error is caused when the BlackBerry PIN is missing from the HTTP header of the subscription request.  This is typically caused by a missing or invalid BlackBerry Internet Service Browsing service book, which causes the request to be sent over a different transport route.

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Contributor
Posts: 40
Registered: ‎05-12-2010
My Device: multiple devices
My Carrier: multiple simcards

Re: Push registration returns rc=10001 error when not on Wifi

Hmm i think i stated the problem in correctly.

It works when on 3G but it doesnt work when on WIFI.

 

Wifi gives me the rx=10001 code.

 

I checked and i do have the Blackberry Internet Browsing Service in the Service Book. Internet browsing also works fine.

 

Again the strange thing is: It works fine under 3G... on WIFI it does not. Is it possible that a proxy mangles the request?

Developer
Posts: 47
Registered: ‎11-11-2009
My Device: Not Specified

Re: Push registration returns rc=10001 error when not on Wifi

I get the same problem. It returns 403 when I call the URL. but it returns param=xxxxxx when I call the URL manually using the internet browser in my device (not simulator)

Contributor
Posts: 11
Registered: ‎06-09-2010
My Device: Curve 8900
My Carrier: T-Mobile

Re: Push registration returns rc=10001 error when not on Wifi

[ Edited ]

You cannot register over WiFi by just calling the registration method.

 

When not using blackberry.net tunnel you have to emulate all headers implicitly set by blackberry.net.

It's theory since I haven't tried yet ... Smiley Wink

 

But even if you get your device registered I doubt you will get any pushes over WiFi ...

 

As far as I know, there is no way to user the blackberry.net tunnel over WiFi.

BlackBerry Development Advisor
Posts: 15,784
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: Push registration returns rc=10001 error when not on Wifi

The registration should be routed over the BlackBerry Internet Service and not sent directly over WiFi.

 

However, note that BlackBerry Smartphones can automatically route BlackBerry Enterprise Server and BlackBerry Internet Service traffic over a WiFi connection.  This would look the same to your application  as when the connection was made over a cellular network.  This concept is referred to as least cost routing and is explained in more detail in the following videos.

 

Network Transports

http://supportforums.blackberry.com/t5/Java-Development/Network-Transports/ta-p/446834

 

Network Transports II

http://supportforums.blackberry.com/t5/Java-Development/Networking-Transports-II/ta-p/446742

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker