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

Web and WebWorks Development

Reply
New Contributor
Posts: 2
Registered: ‎04-01-2013
My Device: developer

need help on webworks bbm : bypass contact picker

hello,

I'm a new bb developer, and need help to bypass contact picker on startBBMChat.

I need the apps to direct the user to a specific PIN/name in the contact list.

 

I've tried for every combination, but not succeeded yet.

help to define or use of   [users : blackberry.bbm.platform.users.BBMPlatformUser[]]

 

thank you

Retired
Posts: 1,382
Registered: ‎07-02-2009
My Device: BlackBerry Bold 9900
My Carrier: Bell

Re: need help on webworks bbm : bypass contact picker

Use the invoke framework to launch a new chat and provide the specific PIN of the user you wish to invite:

 

https://github.com/blackberry/BB10-WebWorks-Samples/blob/master/bbm/js/bbm.js#L114-L117

 

blackberry.invoke.invoke({
   action: 'bb.action.BBMCHAT',
   uri: 'pin:2100000A'
});

 

More of the sample app where this code snippet is from:

https://github.com/blackberry/BB10-WebWorks-Samples/tree/master/bbm

Follow me on Twitter: @n_adam_stanley
-------------------------------------------------------------------------------------------------------------------------
Your app doesn't work? Use BlackBerry remote web inspector to find out why.
Highlighted
New Contributor
Posts: 2
Registered: ‎04-01-2013
My Device: developer

Re: need help on webworks bbm : bypass contact picker

thank you for the quick answer.

 

I have seen this code before, but I thought that this one only pertain to BB10 whereas I am still trying to support the OS6.

 

please confirm