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