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.

inside custom component

Java Development

Reply
Highlighted
New Developer
Posts: 18
Registered: ‎03-10-2009
My Device: Not Specified

HttpConnection & WIFI -- Other gateways disabled when using WIFI?

[ Edited ]

I'm running into a scenario where a user is connected to a specific transport gateway (lets say WAP2, but it could be any) and is able to make a data request fine. But once they connect to WIFI they are no longer able to make a data connection via WAP2.

 

Question: Is this because WIFI overrides all other gateway transports and only a WIFI connection can be made?

 

I ask because in this other forum thread pete_strange hints at this is what's going on

http://supportforums.blackberry.com/t5/Java-Development/Connect-over-WiFi/m-p/375220

"if your choices are WiFi or Direct TCP, you are going to have to check WiFi first and fall back to Direct TCP if WiFi isn't there or doesn't work.  The system will not do that for you."

 

Thanks in advance.

 

New Developer
Posts: 96
Registered: ‎07-26-2008
My Device: Not Specified

Re: HttpConnection & WIFI -- Other gateways disabled when using WIFI?

 

If you are using a BIS or BES mode, the "system" will switch from WiFI to cellular etc as needed - but unless you have coded for this in your application the application will pick one path at a time.

 

Also, WiFI is a deviceside=true mode connection . WAP is not. Not sure if you are trying to specify a WAP connection uid with interface=wifi. That is not expected to work.

 

Developer
Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: HttpConnection & WIFI -- Other gateways disabled when using WIFI?

I can confirm that the 'fallback' is only meant to highlight that the change from wifi to direct tcp will not happen automatically, unlike with BIS and BES connections where the application in fact does not even know or care if WiFi or wireless is being used.

 

Note that the ";deviceside=true" is not required for WiFi connections but doesn't seem to hurt - there is a debate about whether you should code it for 'readability' or leave it out because it is not needed.  I fall into the later camp.

Developer
Posts: 1,474
Registered: ‎04-14-2009
My Device: Not Specified

Re: HttpConnection & WIFI -- Other gateways disabled when using WIFI?

1. What's the connection URL used for connecting via WAP 2.0? In particular, what connection UID is used and how is it obtained?

 

2. Does the above connection URL change when the device connects to a WiFi network?

 

3. Is the cellular interface still up and running when the device is connected to a WiFi network (it has to be, otherwise the device can't connect via WAP 2.0).