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 Developer
Posts: 15
Registered: ‎09-21-2011
My Device: 9860
My Carrier: more than one

Connection token for BIS

Hi, 

 

how do I get a connection token for BIS? I applied for push services and I received an application id, but that does not seem to work.

 

This is the code I use:

 

ConnectionFactory _factory = new ConnectionFactory ();
_factory.setPreferredTransportTypes( new int[] {
TransportInfo.TRANSPORT_BIS_B
});

 

_factory.setTransportTypeOptions(TransportInfo.TRANSPORT_BIS_B, new BisBOptions(MY_APP_ID));

ConnectionDescriptor descriptor = _factory.getConnection(url);

 

--------

 

at this point descriptor is null.

Highlighted
New Developer
Posts: 15
Registered: ‎09-21-2011
My Device: 9860
My Carrier: more than one

Re: Connection token for BIS

if I use BisBOptions("nds-public") then I can get a BIS connection.

 

If I use the application ID i received for push services I can't make a BIS connection. The application id has format XXXX-XXXXXXXXXXXXXXXXXXXXX.