05-23-2012 08:52 AM
Thanks for confirming. Based on the error you provided a few posts back you are not including the serviceId parameter, could you please ensure that this is added?
Also, was it the real device or simulator that returned the squid-cache error?
05-23-2012 09:35 PM
You can see below. we have sent the serviceId at the first request. But The first request respond a error message.
So, Could you please confirm that what the error on below URL.? Why it response the error? Which case will cause the error happen?
/** Used as the URL to register this device to the BlackBerry Push server. */ private static final String REGISTER_URL = BBP_SERVER + "/mss/PD_subReg?serviceid=" + APP_ID + "&osversion=" + getDeviceSoftwareVersion() + "&model=" + DeviceInfo.getDeviceName() + ";ConnectionType=xxx-xxxxx;deviceside=false"; /**
* Attempts to register this device with the BlackBerry Push server. This
* method also alerts the user whether the registration was successful
* or not.
* @return True if the registration was successful, false otherwise.
public boolean registerForService()
if( !isRadioConnected() )
// Open a connection with the BB Push server and request registration
byte encryptedData = connectAndRead(REGISTER_URL);
// Open a new connection and register using the encrypted url.
final String encryptedParam = new String(encryptedData);
String encryptedUrl = BBP_SERVER + "/mss/PD_subReg?osversion=" + getDeviceSoftwareVersion()
+ "&model=" + DeviceInfo.getDeviceName() + "&" + encryptedParam + ";ConnectionType=xxx-xxxxxc;deviceside=false";
byte statusCodeData = connectAndRead(encryptedUrl);
// Status code sent back to the application from the BB Push server
final String statusCode = new String(statusCodeData);
// Note: Developers should also register with the Content Provider
// in order to notify the server that it can push data to this
// If registration succeeded then start listening to messages
// from the server.
if( (statusCode.equals(StatusCode.REGISTER_SUCCESSFUL) || statusCode
_dataListener = new ListeningThread();
showDialogAndWait("Registration Failed\nStatus Code: " + statusCode);
catch( final Exception e )
showDialogAndWait("Registration Error\n" + e.toString());
05-24-2012 09:34 AM
It shouldn't respond with error, but I think the issue now is that there is too much confusion on what is and has been tested.
Could you please respond with all of the following:
1) Test on a real device with BIS access, grab the full URL used to register as well as all error messages
2) The device model and software version used
3) Has push service ever worked for this device in the past?
07-24-2012 07:44 AM