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. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

BlackBerry Push Development

Reply
BlackBerry Development Advisor
gbeukeboom
Posts: 1,940
Registered: ‎10-16-2009
My Carrier: Bell

Re: Is Pushapi Server down?

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?

Garett Beukeboom
BlackBerry Development Advisor
Developer Zone
@garettbeukeboom

--
Think of a great new feature? Find a bug?
Log and track them using the Developer Issue Tracker
Please use plain text.
Contributor
RoyWinnie
Posts: 31
Registered: ‎05-09-2011
My Carrier: AT&T

Re: Is Pushapi Server down?

hi ,

 

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() )
        {
            return false;
        }

        try
        {
            // 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
            // device.

            // If registration succeeded then start listening to messages
            // from the server.
            if( (statusCode.equals(StatusCode.REGISTER_SUCCESSFUL) || statusCode
                    .equals(StatusCode.USER_ALREADY_SUSCRIBED)))           
            {
                _dataListener = new ListeningThread();
                _dataListener.start();

                showDialogAndWait("Registration Succeeded.");
                return true;
            }
            else
            {
                showDialogAndWait("Registration Failed\nStatus Code: " + statusCode);
                return false;
            }
        }
        catch( final Exception e )
        {
            showDialogAndWait("Registration Error\n" + e.toString());
            return false;
        }
    }

 

Please use plain text.
BlackBerry Development Advisor
gbeukeboom
Posts: 1,940
Registered: ‎10-16-2009
My Carrier: Bell

Re: Is Pushapi Server down?

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?

Garett Beukeboom
BlackBerry Development Advisor
Developer Zone
@garettbeukeboom

--
Think of a great new feature? Find a bug?
Log and track them using the Developer Issue Tracker
Please use plain text.
New Contributor
anoop_gpr
Posts: 3
Registered: ‎06-11-2012
My Carrier: Airtel India

Re: Is Pushapi Server down?

Same issue i resloved by passing connection suffix  ';deviceside=false;ConnectionType=mds public'

Please use plain text.
New Contributor
anop72
Posts: 6
Registered: ‎07-18-2012
My Carrier: AIS

Re: Is Pushapi Server down?

"active BIS"

 

how? could anyone describe for me.

 

If my sim card not have any plan. Is it work on push BIS

 

Cheers,

anop72

Please use plain text.
BlackBerry Development Advisor
gbeukeboom
Posts: 1,940
Registered: ‎10-16-2009
My Carrier: Bell

Re: Is Pushapi Server down?

You will need a BIS data plan in order to receive pushed data.

Garett Beukeboom
BlackBerry Development Advisor
Developer Zone
@garettbeukeboom

--
Think of a great new feature? Find a bug?
Log and track them using the Developer Issue Tracker
Please use plain text.
New Contributor
anop72
Posts: 6
Registered: ‎07-18-2012
My Carrier: AIS

Re: Is Pushapi Server down?

your correct. thanks

Please use plain text.