BIS push registration for lack of client app

Hi all

I'm trying to implement the push BIS service in the client application.

I got the Port number, appId, BPA URL & using that i'm trying to register using the code below

public boolean registerBpas() {}

Logger.info ("MyScreen.registerBpas ()");
/**
As the suffix of the connection is fixed I just use a Thread to call the code of connection
*
**/

isValue Boolean = false;
       
try {}
Logger.info ("-step 1");
String conparam = getConnParam();
Logger.info ("---> conparam:" + conparam);
final String registerUrl = formRegisterRequest (null, BPAS_URL, APP_ID), + conparam / * Conn.getConnectionParameters () * /;
Logger.info ("\n\n\n msg registerBPAS URL is:" + registerUrl);
HttpConnection httpConnection = (HttpConnection), Connector.open (registerUrl);
InputStream is = httpConnection.openInputStream ();
Response string = new String (IOUtilities.streamToBytes (is));
Logger.info ("\n\n\n\n\n\n msg RESPOSE CODE:" + response);
Close (httpConnection, is, null);
String nextUrl = formRegisterRequest (BPAS_URL, APP_ID response) + conparam / * Conn.getConnectionParameters () * /;
Logger.info ("\n\n\n\n\n\n msg nextUrl:" + nextUrl);
HttpConnection nextHttpConnection = (HttpConnection), Connector.open (nextUrl);
InputStream nextInputStream = nextHttpConnection.openInputStream ();
response = new String (IOUtilities.streamToBytes (nextInputStream));
Logger.info ("\n\n\n\n\n\n msg RESPOSE CODE 1:" + response);
Close (nextHttpConnection, is, null);
If (REGISTER_SUCCESSFUL.equals (response) |) {USER_ALREADY_SUBSCRIBED. Equals (Response))}
Logger.info ("saved successfully to push BIS msg");
                        
Returns true;
} else {}
Logger.info ("msg record BPA rejected");
isValue = false;
Returns false;
}
} catch (final IOException e) {}

Logger.info ("IOException msg on register()" + e + "" + e.getMessage ());
isValue = false;
Returns false;
}
                
Return isValue;
}

public static close Sub (conn connection, InputStream is, OutputStream os) {}
If (OS! = null) {}
try {}
OS. Close();
} catch (IOException e) {}
}
}
If (is! = null) {}
try {}
is. Close();
} catch (IOException e) {}
}
}
If (conn! = null) {}
try {}
Conn.Close ();
} catch (IOException e) {}
}
}
}

Public Shared Sub errorDialog (final String message)
{
UiApplication.getUiApplication () .invokeLater (new Runnable()
{
public void run()
{
Dialog.Alert (message);
}
});
}

private static String formRegisterRequest (String bpasUrl, String appId, string token) {}
StringBuffer sb = new StringBuffer (bpasUrl);
SB. Append("/MSS/PD_subReg?");
SB. Append ("ServiceId ="). Append (appid);
SB. Append("&OSVersion="). Append (DeviceInfo.getSoftwareVersion ());
SB. Append("&Model="). Append (DeviceInfo.getDeviceName ());
If (token! = null & token.length () > 0) {}
SB. Append("&"). Append (Token);
}
Return sb.toString ();
}
    
    
    
public static String getConnParam() {}
String connectionParameters = "";
If (WLANInfo.getWLANState () == WLANInfo.WLAN_STATE_CONNECTED) {}
Connected to a WiFi access point
connectionParameters = «;» deviceside = true; interface = wifi. "
} else {}
int coverageStatus = CoverageInfo.getCoverageStatus ();
ServiceRecord record = getWAP2ServiceRecord();
If (record! = null)
& (coverageStatus & CoverageInfo.COVERAGE_DIRECT) ==
CoverageInfo.COVERAGE_DIRECT) {}
Having network coverage and a book of WAP 2.0 service record
connectionParameters = «;» deviceside = true; ConnectionUID ="
+ record.getUid ();
} else if ((coverageStatus & CoverageInfo.COVERAGE_MDS) ==)
CoverageInfo.COVERAGE_MDS) {}
Have a book cover and SDM service network
connectionParameters = «;» deviceside = false;
} else if ((coverageStatus & CoverageInfo.COVERAGE_DIRECT) ==)
CoverageInfo.COVERAGE_DIRECT) {}
Have the network coverage, but no trace of service WAP 2.0 book
connectionParameters = «;» deviceside = true;
}

}
Return connectionParameters;
}
private static {ServiceRecord getWAP2ServiceRecord()
Full book sb = ServiceBook.getSB ();
Reviews [] ServiceRecord = sb.getRecords ();
for (int i = 0; i)< records.length;="" i++)="">
String cid = records [i] .getCid () .toLowerCase ();
String uid = records [i] .getUid () .toLowerCase ();

If (cid.indexOf ("wptcp")! = - 1 &)
uid.indexOf ("wifi") ==-1 &.
uid.indexOf ("mms") ==-1) {}
Returns records [i];
}
}
Returns a null value.
}

But I m getting the error below

Timeout occurred while processing the operation.

Check the log of the unit below

INFO: File created successfully
INFO: MyScreen.registerBpas)
INFO:-step 1
NEWS :---> conparam:; deviceside = true; ConnectionUID = WAP2 trans
INFO:

registerBPAS MSG URL is: http://pushapi.eval.blackberry.com/mss/PD_subReg?serviceid=2350-7la145e5r36mi1n42M6037M9600e95a1155&... trans
INFO:

MSG RESPOSE CODE:

Timeout occurred while processing the operation.

INFO:

MSG nextUrl: http://pushapi.eval.blackberry.com/mss/PD_subReg?serviceid=2350-7la145e5r36mi1n42M6037M9600e95a1155&...

Timeout occurred while processing the operation.

; deviceside = true; ConnectionUID = WAP2 trans
INFO:

MSG RESPOSE CODE 1:

Has received a bad request formed.

INFO: msg BPA rejected registration
INFO:-isSub: false

Hi Simon

His work... Register register & to work...

Thank you very much for your answer...

In fact, in connection suffix, I used [deleted inappropriate content]

There must be a hyphen (-) between mds & public, its not allow me to type this text because it's in this forum.

And tested device in...

This connection suffix is transposition BIS & now I am able to register and de-register my app to push.

But still, I need to test the receiver push message part, once my server implementation is made.

Once again thanks a lot...

Thank you

Lauriane


Tags: BlackBerry Developers

Similar Questions

  • Push notifications for Pro subscription non-kiosque apps?

    I am struggling to determine the answers to some questions that different sources seem to suggest different things, so:

    • We have a professional subscription DPS, not business
    • We create a multi-question application
    • As we are not publishing content on a calendar, we do not want to create a kiosk app

    Are we able to have push notifications for users that new content is available to download?

    I thought I had read that it was possible, but that the notification (for now) would be limited to a badge on the icon showing the number of new items of content available. Now, I'm not sure.

    If it * is * possible, that someone know a guide for the right settings to apply when you configure the application in DPS App Builder?

    Finally - assuming it's possible - push notifications appear in the development version of the application?

    See you soon,.

    Keith


    Yes, if you create a certificate to push and turn on notifications of type push when you build the application, a badge will appear on your non-kiosque application icon to newspapers when you publish a new folio (click Notify in Folio Producer). Read the release guide for more information on creating the certificates to push and which allows to push. (We hope to have notifications of transmission available in standard text based push later this year.) For now, it's just the Red badge).

    No, push notifications do not appear in the development version of the application. There is a complicated way to make it work in a development application, but it is not worth.

  • Push registration: (Berr java.lang.IllegalArgumentException) network error

    Hello

    We try to get WebWorks push the work but are a problem with blackberry.push.openBISPushListener. The onRegister function returns a status of 1 (network error).

    The log file shows the following:

    11/9 10:00:54 W net.rim.blackberry.api.push - Berr java.lang.IllegalArgumentException
    11/9 10:00:21 a Contapp - PushDaemon is started.
    11/9 10:00:21 a Contapp - Register push application
    11/9 10:00:21 a Contapp - open BIS push listener
    

    This application is used to work so I wonder if something might have changed in the upgrade of the server push.

    The application code is the following:

    
    
    
        
    
    
        

    And the following push configuration in the config.xml file:

    
    
    
    
    
    
    
    
    
      BIS-B
      MDS
      TCP_WIFI
      TCP_CELLULAR
      WAP2
      WAP
    
    
    
      read_device_identifying_information
      access_shared
    
    

    It is all tested on a device 9300.

    Any ideas as to why we get this error?

    Thanks in advance for the help!

    Nick

    This issue should now be resolved, please let me know if you continue to have problems with the registration with the EVAL server.

  • Examples of Code for the (Simplified) Client software

    After digging through the application of the whole sample RIM provides I thought I want to provide a code for the simplified example. Short opinion: post connection suffix is not allowed on the forums. You can see the sample application of the RIM if you do not already elsewhere. Please see the article here, it's under review if you want to contribute (although the code is mainly in the attached files): http://supportforums.blackberry.com/t5/BlackBerry-Push-Development/Simplified-BIS-Push-client-sample...

    the article has been published: http://supportforums.blackberry.com/t5/BlackBerry-Push-Development/Simplified-BIS-Push-client-sample...

  • Looking for a SSH Client for Firefox OS

    I am looking for a SSH Client for Firefox OS (1,3).

    A FireSSH add-on is available for a 'normal' version of the firefox browser, but unfortunately it can not be installed in the mobile version.

    Greetings

    Michael

    Hi Michael,

    It's great! Thank you for your contribution to maintenance to the Mozilla (SUMO) forums and to push these code changes for Anyterm works well with Firefox OS.

    I want Firefox OS users who are looking for a SSH client for this solution in the future.

    Thank you

    -Ralph

  • registration for the service is missing & windows update does not not in windows 7

    I got the error "registration for the service is missing or corrupted" when I used the diagnostic download bits of one of your answers to someone else. I can't download the updates of windows from 08/10/16 - the latest downloads on 08/02/16. I did a full scan with McAfee & there is no problem in that. Given that the system sought & found these updates 08/10/16, the fan noise has served continuously as in a loop. I managed to stop that noise will 'services.msc', choose 'windows update', by selecting Properties & stop. If I start it again, it seems to go on and on but updates still do not download. I have Windows 7 Home Premium on a laptop. Can you help me?

    1. have you ever run the McAfee Consumer products removal tool?

    • Fact: McAfee (and Norton) applications are notorious for not not upgrade (or uninstalling) itself. "Leftovers" can be here your troublemaker.

    2 - is the same computer - not necessarily the same problem - as in one or more of these previous threads of yours?

    http://answers.Microsoft.com/en-us/Windows/Forum/all/unable-to-install-Windows-updates-kb3035490-and/a2837314-dd69-422e-9798-2ff937e375d2

    http://answers.Microsoft.com/en-us/Windows/Forum/all/Windows-Update-not-working-error-codes-643/b1dee3ce-9818-4e69-93c3-7b1a9489d036

    http://answers.Microsoft.com/en-us/IE/Forum/IE9-Windows_7/Internet-Explorer-9-not-working-with-some-apps/8dd4ee4a-04F9-4021-a3f5-a3764f403852

  • Registration for authentication and crossing area of Jabber

    Hello

    I used TMS 13.1.2 as authentication source LDAP for VCS-control and VCS Expressway, but noticed, that not all passwords are synchronized correctly in the LDAP H.350 MSDS database, because the user is recorded in two entries. I went to the local authentication, including the database configuration on VCS - C and the local database with the transmission by proxy SIP VSC-E to the VCS - C records. It works fine and I am able to make calls.

    I created the search on VCS highway rules to replace all aliases MCU to an auto attendant external special. Stored locally on the VCS-E endpoint points are allowed to call internal aliases. I tried to do the same for the Jabber Clients, which is recorded in the crossing area of the VCS - C. This works as expected, because the Jabber Clients are not enrolled in a local area and SIP GUEST is not in dispute.

    I expect that all the Jabber client message will be challenged by the VCSE, but this isn't the case. Accordingly, the guest of the SIP protocol is treated as an external user and not an intern.

    May 9 10:11:28     tvcs: UTCTime="2012-05-09 08:11:28,425" Module="network.search" Level="INFO": Detail="Search rule 'my.domain proxy registrations' did not match destination alias [email protected]/* */'"
    May 9 10:11:28     tvcs: UTCTime="2012-05-09 08:11:28,423" Module="network.sip" Level="INFO": Dst-ip="84.113.206.194" Dst-port="62503" Detail="Sending Response Code=100, Method=INVITE, To=sip:[email protected]/* */, [email protected]/* */"
    May 9 10:11:28     tvcs: UTCTime="2012-05-09 08:11:28,419" Module="network.sip" Level="INFO": Src-ip="84.113.206.194" Src-port="62503" Detail="Receive Request Method=INVITE, Request-URI=sip:[email protected]/* */, [email protected]/* */"

    These are the rules of research that I was talking about:

    110     Enabled     "local registered to Traversal"     LocalZone      No      Alias pattern match      Regex      ^(.*)@my.domain$      Leave      Continue      TraverselZone
    115     Enabled     "authenticated to internal"     Any      Yes      Alias pattern match      Regex      ^(.*)@my.domain$      Leave      Continue      TraverselZone
    120     Enabled     "mcu all to 899"     Any      No      Alias pattern match      Regex      ^(900\d*|conference)@nts\.eu$      Replace      Stop      TraverselZone

    Is it possible to allow the Jabber Clients to be authenticated on the VCS-E, so a search rule can aply?

    Thanks for your help!

    You get the 'Preparation device' key for your VCS-E so its free.

    It may require a valid service contract.

    I have the provisioning again running on a cluster of VCS - E in my lab, works very well.

    In ancient times that the deployment has not officially supported, it was running great in any case :-)

    Did not check if its now a deployment with support.

    I don't know enough about your deployment to say what would be the best for you.

    There will be some scenarios where not all features can be deployed together for some reason any.

    Maybe someone can help you by looking at how implementation could be done better.

    If you have authentication and integration of ads, that you need to connect

    the VCS-E announced as well. Endpoints (at least for now) is not auth via AD, but you could

    use a database of h.350 (could also be hosted with AD) or the local authentication database.

    Now, which is also spread by TMS, could be an answer to your question as well.

  • Smartphones blackBerry's BIS PUSH really 20 minutes?

    I got BlackBerry for years, connected to BES society and got email immediate.  Now I am on leave and using BIS PUSH for emails from the company and it takes up to 20 minutes (which then goes down to a few minutes after the first email).  Should it take 20 minutes?

    jmurra wrote:

    Thank you for your prompt response and thorough, I appreciate your help.

    I wonder if WinMob, anddroid or a different operating system pushes emails faster?  I can't go company BES but need to e-mail faster than 15-20.

    Sorry, those ^^ will not impose on your device. It is a completely different technology.

  • I can't access MY copy of After Effects (after registration for the trial of cloud) please advise

    I can't access MY copy of After Effects (after registration for the trial of cloud)

    How to access MY copy of After Effects?  Whenever I try to open MY after effects project, it opens the window of the trial (which has now expired).

    Sign out of your account of cloud... Restart your computer... Connect to your paid account of cloud

    -Connect using http://helpx.adobe.com/x-productkb/policy-pricing/account-password-sign-faq.html

    -http://helpx.adobe.com/creative-cloud/kb/sign-in-out-creative-cloud-desktop-app.html

  • Simple editing - how long for approval to Apple App Store? Content Viewer is an Option?

    Hello-

    I'm kind of a difficult situation. We have a client who has just told us that they would like to make an application, we have created for them available to participants of a conference, somewhere from 100 to 300 people. The app, we have created for them was just done and put in Content Viewer, as it was just for a client and an iPad.

    Now, we would like to make public for 100 to 300 people, so let's buy simple editing. But we have this upward and available for purchase in the app store in 10 days. I know it varies from one case to another, but no one thinks there is a chance that the Apple App store might approve early enough, say if we transferred Monday and required to be available on Friday?

    If this isn't the case someone ' a has any ideas for pension plans? Some questions I have: an app, how Adobe ID can be shared with? Like, it would be possible to share the folio with an Adobe ID and give this connection to people at the Conference who want to see the app, and then they connect to Adobe Content Viewer, connect and download if they want to. Seems fragile, at best, but it is worth as a backup plan?

    Thank you very much

    B

    I had an application to simple editing approved over the weekend. 10 days exactly.

    That said, you have no guarantee that it will be in 10 days or who

    It will even be approved.

    I'm not aware of any limit on the number of people can connect with the same ID.

  • Recommendations for a password manager App / extension safari?

    Someone at - it recommendations for a password manager App / extension safari?

    "1Password" seems to be very well rated, but is quite expensive for what it does.

    Is there something cheaper that works as well or nearly so?

    Thank you

    One possibility is the iCloud integrated Apple's Keychain: frequently asked questions about iCloud Keychain - Apple Support

    I don't use it myself but only because I need something that works also on Windows and OS X and iOS. I use Dashlane because it's that good: https://www.dashlane.com/

  • Online transfer of the registration for PC Toshiba laptop

    What is the procedure for the transfer of the registration for PC online Toshiba laptop
    When I bought from a dealer who has already registered in his name.

    Hello

    I think that it of not possible to do it on the Web site.
    I think that you will need to contact Toshiba service partner in your country.

    I think that you will also need a confirmation of the garage which has saved this laptop.
    But EPA should give you more details what is needed.

    The entire base of ASP in the world, you will find on the page of European support of Toshiba.

  • In the middle of my teens adding devices, and registration for the apple's music, security issues have been changed and now nobody seems to remember the answers.  How can you bypass those to change your settings?

    In the middle of my teens adding devices, and registration for the apple's music, security issues have been changed and now nobody seems to remember the answers.  How can you bypass those to change your settings?

    You must ask security team account Apple to reset your security questions. To contact them, click here and choose a method; If this page does not list one for your country or if you are unable to call, complete and submit this form.


    (140233)

  • Registration for the Standard warranty and extended

    I have registered my system to the Standard warranty and also fact of registration for extended warranty Service (2 years) and _got message for registaration successful for both, standard warranty and extended warranty_. But on the verification of the details of my system to it always says my system is NOT REGISTERED and the guarantee here it shows only 365 days and not 3 years!

    Can someone pls help and inform me of the email address of contact of the Toshiba research customer service records and warranty extensions?

    * After how many days they are updating the registration information on ? *.

    Maybe something went wrong during registration or the system not updated status. As Jeffrey has already suggested, eventually the data was not updated and you have to wait one, two day (s).
    If we can't change the status of the guarantee, contact the service provider to authorize to clarify this issue!

    Concerning

  • How to use Quicktime Player 7 Pro registration for second computer? View order history goes back only 18 months. When I enter my key QT7 he just told me to buy again.

    How to use Quicktime Player 7 Pro registration for second computer? View order history goes back only 18 months. When I enter my key QT7 he just told me to buy again.

    You need a separate license for each Mac.

Maybe you are looking for