Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
New Contributor
Posts: 9
Registered: ‎02-23-2012
My Device: Developer
My Carrier: Netcom/Telenor

Network doesn't work if MMS is disabled in BES

Hi,

 

I have developed a Blackberry Java app and the network connection doesn't seem to work if the user are using BES with MMS disabled.

 

The moment MMS is enabled in BES the network is working for the app.

 

Can anyone help me understand why the MMS settings are having effect on the network in my app?

I am using the following code to decide what kind of transport protocol to use (notice that I am not allowing BIS-B).

 

		TransportDetective td = new TransportDetective();
		URLFactory urlFactory = new URLFactory(connectionURL);

		if(td.isCoverageAvailable(TransportDetective.TRANSPORT_MDS)){
			//Use MDS if available
			return urlFactory.getHttpWap2Url(td.getSrMds());
		}
		else if(td.isCoverageAvailable(TransportDetective.TRANSPORT_TCP_WIFI)){
			//Use TCP WIFI if available
			return urlFactory.getHttpWap2Url(td.getTcpWiFiServiceRecord());
		}
//		else if(td.isCoverageAvailable(TransportDetective.TRANSPORT_BIS_B)){
//			//Use BIS-B if available
//		   return urlFactory.getHttpWap2Url(td.getBisServiceRecord());
//		}
		else if (td.isDefaultTcpCellularServiceRecordAvailable()){
			//Use default TCP Celluar Service if available (APN)
			return urlFactory.getHttpWap2Url(td.getDefaultTcpCellularServiceRecord());
		}
		else if(td.isCoverageAvailable(TransportDetective.TRANSPORT_WAP2)){
			//Use WAP 2 if available
			return urlFactory.getHttpWap2Url(td.getWap2ServiceRecord());
		}
		else if(td.isCoverageAvailable(TransportDetective.TRANSPORT_WAP)){
			//Use WAP 1 if available
			return urlFactory.getHttpWap2Url(td.getWapServiceRecord());
		}

 

Developer
Posts: 19,623
Registered: ‎07-14-2008
My Device: Not Specified

Re: Network doesn't work if MMS is disabled in BES

How do you enable and disable MMS from the BES?  Not an area o fexpertise and thought I might try to test this....

New Contributor
Posts: 9
Registered: ‎02-23-2012
My Device: Developer
My Carrier: Netcom/Telenor

Re: Network doesn't work if MMS is disabled in BES

I am not an expert on BES myself but this is what the client using BES told me:

 

Within our BES (Blackberry Enterprise Server Version: 5.0.3.31) we have a default Security Policy applied to all users disabling MMS.

 

This should be found under Common and the Rule name is Disable MMS with a value Yes/No. It defaults to No I think, so MMS is by default enabled.

 

Much appreciated that you will try to test this.

 

BlackBerry Development Advisor
Posts: 15,075
Registered: ‎07-09-2008
My Device: BlackBerry Passport
My Carrier: Bell

Re: Network doesn't work if MMS is disabled in BES

I tried applying this IT policy on BlackBerry 7.1 and was still able to make a network connection through MDS.  

 

Which BlackBerry Smartphone model and BlackBerry handheld software version are you testing on?  You can find this under Options, About on the BlackBerry Smartphone.

 

Can you elaborate on what isn't working?  Is an exception thrown?  If so on which line and what is the exception?

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
New Contributor
Posts: 9
Registered: ‎02-23-2012
My Device: Developer
My Carrier: Netcom/Telenor

Re: Network doesn't work if MMS is disabled in BES

Hi Mark,

 

Sorry for the late reply, have been out travelling.

 

I know that this issue has occured earlier on BlackBerry 7 devices but now the customer tested it with another BB device and the same issue still appears.

 

The device he used to test:

Blackberry 8520, Smartphone (edge Wi-Fi). V5.0.0.681 (platform 5.2.0.76) Cryptographic Kernal v3.125.491F. Branding Version: 1.0.125.491F. Micro Edition Configuration: CLDC-1.1

 

The app freezes when establishing connection in the startup screen. This can only be reproduced at customer site so I can not check for exceptions. I hoped that this might have been a known issue with a simple solution.

 

I understand that it is hard for you to give me more help with the little information provided by me. I will have to try to be able to run it at customer site and see if I get some more info.

 

Thanks.