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: ‎10-29-2009
My Device: Torch 9800, Bold 9700, PlayBook
My Carrier: Orange

ConnectionFactory not using BIS but another APN instead

[ Edited ]

Hi,

I'm using this code to open HTTPS connections in an app:

 

        int[] preferredTransportTypes = { TransportInfo.TRANSPORT_TCP_WIFI,
                TransportInfo.TRANSPORT_BIS_B, TransportInfo.TRANSPORT_MDS,
                TransportInfo.TRANSPORT_TCP_CELLULAR,
                TransportInfo.TRANSPORT_WAP2 };
        ConnectionFactory factory = new ConnectionFactory();
        factory.setPreferredTransportTypes(preferredTransportTypes);
        ConnectionDescriptor conDescriptor = factory.getConnection(url);

 

It seems to work fine for most of the users, but some complain that the app doesn't use their BIS connection but another (carrier) APN instead. This (direct TCP?) usage is not included in their data plan so they are charged extra for it when they actually would have connections over BIS for free. Two providers that I know of are Vodafone and Orange.

 

What can we do to avoid this? Shouldn't the ConnectionFactory prefer BIS over direct TCP in this setup?

 

Thanks!

Developer
Posts: 729
Registered: ‎05-04-2011
My Device: 9700

Re: ConnectionFactory not using BIS but another APN instead

[ Edited ]

Hi @klemensz

 

 

Does your application have permission to use BIS connection?

 

You should get an approval from RIM...

 

E.

New Contributor
Posts: 9
Registered: ‎10-29-2009
My Device: Torch 9800, Bold 9700, PlayBook
My Carrier: Orange

Re: ConnectionFactory not using BIS but another APN instead

I didn't know that you need extra permissions for that? Where can I apply?

Developer
Posts: 729
Registered: ‎05-04-2011
My Device: 9700

Re: ConnectionFactory not using BIS but another APN instead

New Contributor
Posts: 9
Registered: ‎10-29-2009
My Device: Torch 9800, Bold 9700, PlayBook
My Carrier: Orange

Re: ConnectionFactory not using BIS but another APN instead

Thanks for the hint. I have the application form in front of me now but the next problem arises: The servers don't have static IP addresses because they are in the cloud.