cancel
Showing results for 
Search instead for 
Did you mean: 

SUP BlackBerry switch back from WIFI

Former Member
0 Kudos

Hi everybody,

I've developed an application with SUP 2.1 for blackberry devices, I'm having problem with WIFI and BES, both with simulator and real device.

The requirements are to switch to WIFI when available and back to the standard connection when WIFI is not available.

I've tried this:

MYDB.getAvailableTransportTypes() -> BES WIFI

MYDB.getSynchronizationProfile().getString("transport"); -> null

MYDB.isCoverageSufficient("BES") -> false

MYDB.isCoverageSufficient("WIFI") -> true

Then I logintoSynch and syncronize and everything is ok (the traffing is routed by MDS).

Second test, set transport=WIFI

MYDB.getAvailableTransportTypes() -> BES WIFI

MYDB.getSynchronizationProfile().setString("transport","WIFI");

MYDB.getSynchronizationProfile().getString("transport"); -> WIFI

MYDB.isCoverageSufficient("BES") -> false

MYDB.isCoverageSufficient("WIFI") -> true

Then I logintoSynch and syncronize and everything is ok (the traffing is NOT routed by MDS).

from this point on I'm no longer able to synchronize without WIFI, even re-installing the application (without deleting the DB).

For example, after turning OFF the WIFI network:

MYDB.getAvailableTransportTypes() -> BES

MYDB.getSynchronizationProfile().getString("transport"); -> null

MYDB.isCoverageSufficient("BES") -> false

The synchronization does not take place, nothing on the SUP log file, no exception, nothing.

Am I missing something?

Thanks in advance

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Francesco/David,

At the risk of asking the obvious, has your BES been enabled to use Wi-Fi? I remember this being a criteria for using Wi-Fi, so outside of connecting to Wi-Fi from the app, make sure the admin has configured BES appropriately.

Cheers,

Annette

Former Member
0 Kudos

I don't have a BES (I don't think? i'm not terribly familiar with blackberry architecture).  I didn't think BES was required for a workflow application.  I have a relay server setup which is what the workflow app and native app are both configured to use.  I thought that would bypass any need for a BES.

Former Member
0 Kudos

I think BES is an enterprise blackberry server and is a requirement for Wi-Fi. Here's a line right from our 2.2 docs:

BlackBerry application connections can occur over a cellular or Wi-Fi network However, Wi-Fi is only available when enabled on BES.

Let me do some fact checking and see if I can get someone to speak to your 2.1 use case.

_IvanFemia_
Active Contributor
0 Kudos

Annette Bater wrote:

I think BES is an enterprise blackberry server and is a requirement for Wi-Fi. Here's a line right from our 2.2 docs:

BlackBerry application connections can occur over a cellular or Wi-Fi network However, Wi-Fi is only available when enabled on BES.

Let me do some fact checking and see if I can get someone to speak to your 2.1 use case.

Confirm that SUP 2.1.2 and 2.1.3 have this behavior.

Without BES you need to go via 3G.

Former Member
0 Kudos

aww...thought I could use some spare blackberries (that don't have data plans) to test out these applications on real devices rather than the simulator.  I'll look at getting access to a BES and ask again if I have any problems.

Thanks Annette/Ivan.

Former Member
0 Kudos

Thanks Ivan. And David? Sorry to burst your bubble.

Former Member
0 Kudos

I hate reviving an old thread but did you ever figure this out?

I'm trying to connect to SUP with WIFI only and it doesn't seem to work at all.  I put the "MYDB.getSynchronizationProfile().setString("transport","WIFI");" in before startConnection but it just keeps timing out.  Both my native application and workflow application work fine in the simulator with a 3g connection, however once I turn off that connection and try to use WIFI only, neither application works.  Then when going BACK to 3G connection, it still doesn't work.  I have to restart the simulator before it all works again.

Thanks,

David