on 07-07-2011 5:47 AM
Hi all, i developed an application for Blackberry mobile using SUP2.0. In simulator it was working very fine,but in my Device its not getting connect with my server.My server is located in my Organization network. i connected my Blackberry device with organization Wifi network and the same time my mobile network in my device also enabled and active.when i started my application in device. Its not at all syncing with my Server. please help me to get out of this problem ,what could be the reason for this? Thnx in Advance.
Hi,
The problem is your SUP server is only visible within your organizational network,therefore the BlackBerry device cannot
access this server.
regards
kaushik
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
But i connected my Blackberry to my office Wifi network only. so, device is also in the same network then the device should be able to access my local server and one more thing i left the Mobile network in my device in ON only. At that time, blackberry will use which connectivity whether Wifi or Mobile Networks GPRS?
Steps to have the Device use Wifi to connect to SUP server over intranet
1. Start MDS services on the SUP Server (D:\Blackberry eJDK\plugins\net.rim.ejde.componentpack6.0.0_6.0.0.30\components\MDS\run.bat)
2. Replace the synchronize method with the below code
/**
* Synchronize all the synchronizationGroups with the server
*/
public static void synchronize() {
if (isCoverageSufficient("WIFI")) {
getSynchronizationProfile().setString("transport", "WIFI");
synchronize("default", null);
} else {
synchronize("default", null);
}
}
The above code will make the application use Wifi first to connect the SUP.
The above method is the <project-name>DB.java file for BB generated code .
3. Deploy the App in the device (Sign it first).
Thanks
Pradeep
Edited by: Pradeep Gudipati on Jul 26, 2011 12:45 PM
hi i did what you said in the code,but after that also My application is still trying to access GPRS connection. do i need to change anything in Blackberry device.Then one more doubt if i am running my MDS in unwired server installed machine. how the MDS will recognize the incoming for server from the device? And one more thing do we need BES for MBS based application?
User | Count |
---|---|
88 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.