Skip to Content
author's profile photo Former Member
Former Member

SUP BlackBerry switch back from WIFI

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Nov 09, 2012 at 06:19 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 09, 2012 at 06:33 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.