11-15-2012 07:10 AM
First time trying to get Push Notification working. It is proving to be alot of work.
Im getting response 503 from the server. Does this mean the server is down or just busy? How long should I wait before trying again?
Those of you that got the push notification working, how reliable is it?
11-15-2012 08:42 AM
Here is some of my code. The first request gets response 200 but the second one says "Connection closed by Peer" If I use http I get response 503. Any help? The formRegisterRequest is the sample code from this site.
String registerUrl = formRegisterRequest( "https://pushapi.eval.blackberry.com",
"xxxxxxxxxxxx-app-id", null ) + ";deviceside=false;xxxxxxxxlic";
HttpConnection httpConnection = (HttpConnection) Connector.open(registerUrl);
Log("httpConnection responseCode: " + httpConnection.getResponseCode());
InputStream is = httpConnection.openInputStream();
String response = new String(IOUtilities.streamToBytes(is));
close(httpConnection, is, null);
String nextUrl = formRegisterRequest( "https://pushapi.eval.blackberry.com",
"xxxxxxxx-app-id", response ) + "xxxxxxxxlic";
HttpConnection nextHttpConnection = (HttpConnection) Connector.open(nextUrl);
Log("nextHttpConnection responseCode: " + nextHttpConnection.getResponseCode());
InputStream nextInputStream = nextHttpConnection.openInputStream();
response = new String(IOUtilities.streamToBytes(nextInputStream))
close(nextHttpConnection, is, null);
11-15-2012 08:53 AM
From the client side you should only use HTTP to connect to the BlackBerry infrastructure.
I am investigating some other Push related issues in Africa and will let you know what I find, seems to be a trend at the moment so I do not suspect an issue with your application.
11-15-2012 09:19 AM
The first report I received was about a month ago but at the time it was unclear that this may be a geographically related problem:
Typically this should not occur but it seems there is some issue which needs investigating to determine why this started happening.
11-15-2012 11:00 AM
11-21-2012 10:13 AM