on 03-09-2012 3:27 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
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.
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
9 | |
8 | |
6 | |
6 | |
6 | |
5 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.