Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

New Member
Posts: 1
Registered: ‎09-06-2012
My Device: N/A
My Carrier: N/A

Controlling Connection Type



Is there a way to control the application connection and make it use the MDS connection to corporate network only ?

BlackBerry Development Advisor
Posts: 769
Registered: ‎10-01-2009
My Device: All
My Carrier: N/A

Re: Controlling Connection Type



You can specify the transport method in your config.xml


<rim:connection timeout="25000">


Here's a link to the documentation as well: https://developer.blackberry.com/html5/documentation/config_doc_elements.html

Posts: 151
Registered: ‎02-19-2011
My Device: Bold 9930 and PlayBook

Re: Controlling Connection Type

Based on the documentation I doubt this is possible but can the connection ordering be changed after the app is installed?  


If you think i should start a new thread for this question let me know.  I don't mean to hijack the thread but thought the question was related and worth posting in here.

"Not to know what happened before you were born is to be forever a child." Marcus Tullius Cicero
Posts: 1,382
Registered: ‎07-02-2009
My Device: BlackBerry Bold 9900
My Carrier: Bell

Re: Controlling Connection Type

No it cannot.  


As Chad mentioned, you define a prioritized order of which transports you wish your application to use to connect to external resources.  It does not guarantee that any of those transports will actually be used, nor does it ensure your app will only use one of them.  The system decides which one is available and uses that based on the order you provide.


There are some helpful APIs available to let you discover information about the active connection type

The blackberry.system.hasCapability() method can be used to detect whether the WiFi or Cell radio is turned on:



With BlackBerry 10 WebWorks SDK, the new Connection API lets you detect what type of connection is being used (e.g. WiFi, 3G, 4G):


Follow me on Twitter: @n_adam_stanley
Your app doesn't work? Use BlackBerry remote web inspector to find out why.
Posts: 169
Registered: ‎03-25-2011
My Device: Playbook, Z10 L.E.
My Carrier: Vodafone NL

Re: Controlling Connection Type

Hi Adan,


this APi for monitoring connection changes is awesome! Do you know any way I could achieve something similar on WebWorks for Playbook OS 2.0 or Playbook 2.1 Beta?


That woud be a game changer for me!