Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3751028
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T09:00:58+00:00 2026-05-19T09:00:58+00:00

I am trying to register with BlackBerry push notifications, but it shows a time

  • 0

I am trying to register with BlackBerry push notifications, but it shows a time out exception.

Here is the code i wrote

 HttpConnection httpConn = (HttpConnection)Connector.open(url+;interface=wifi,Connector.READ, 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=mds-public;deviceside=false";

        byte[] statusCodeData = connectAndRead(encryptedUrl);
        resultCode=  new String(statusCodeData);
        // Status code sent back to the application from the BB Push server
       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."+resultCode+responseCode);
            return true;
        }
        else
        {
            showDialogAndWait("Registration Failed\nStatus Code: " + statusCode+resultCode+responseCode);
            return false;
        }
    }
    catch(final Exception e )
    {
        showDialogAndWait("Registration Error\n" + e.toString()+resultCode+responseCode);
        return false;
    }
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T09:00:59+00:00Added an answer on May 19, 2026 at 9:00 am

    Is your device otherwise connected to the network? Can you browse to a web page, for example? The push service requires network connectivity.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Trying to write out syslog entries containing strings but they don't register. // person.name
I've read a little on Blackberry push notifications, but I'm not sure if the
I'm trying to register a hot key, I'm translating this C++ code into C#:
I'm trying to register for CGScreenRefreshCallback and CGScreenUpdateMoveCallback ( here's what apple's saying about
I'm trying to register the NSMouseMoved event globally using this line of code: [NSEvent
I am trying to register a type library programatically from VBA code, using two
I am trying to register multiple NHibernate ISessions (multiple databases) by using the code
I am trying to register a c++ function in Lua. But getting this error:
I am trying to register a receiver for the removal of the sdcard, but
I am trying to register a bean in my plugin, but the class(implementation) of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.