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

Native Development Knowledge Base

Invoking BBM Channels

by Developer on ‎02-21-2014 02:30 PM (1,293 Views)

Application Menu.png

 

Adding your BBM™ Channel to your BlackBerry® Native or Cascades™ application is vital to increasing your subscriber rate and encouraging new BlackBerry® 10 users to try your other applications. 

 

To invoke your BBM Channel, from the application (swipe-down) menu, is relatively simple; all you have to use is an actionItem and an onTriggered event. 

 

Firstly, you will need to create a MenuDefinition - this is the base of the application menu.

 

Now that you know how to create an application menu, simply add this

 

    Menu.definition: MenuDefinition {
        actions: [
            ActionItem {
                title: "BBM Channel"
                imageSource: "asset:///IMG/ic_bbm.png"
                attachedObjects: [
                    Invocation {
                        id: invokeBBMChannel
                        query {
                            invokeTargetId: "sys.bbm.channels.card.previewer"
                            invokeActionId: "bb.action.OPENBBMCHANNEL"
                            uri: "bbmc:C00120C46"
                        }
                    }
                ]
                onTriggered: {
                    invokeBBMChannel.trigger("bb.action.OPENBBMCHANNEL")
                }
            }
        ]
    }

 

Replace

 

uri: "bbmc:C00120C46"

 

with your own BBM Channel!

 

You're done! Launch your application to your device or simulator, swipe down from the top bezel and you will be able to click on the actionItem and then you will see your BBM Channel! 

Comments
by Developer
on ‎02-20-2016 03:52 PM

Any way to do this on Android for the Priv?

by BlackBerry Development Advisor
‎02-22-2016 09:45 AM - edited ‎02-23-2016 10:06 AM

Currently no, this isn't supported on Android.

 

I need to correct my response.  This is supported on Android, however it seems to be broken on the current version of BBM running on the BlackBerry PRIV.  It should work by using the following URI.  You can use that as an intent or on a web page like below.

 

 

URI Example for Intent:  
bbmi:///C00120B05 

HTML Example:
<a href="bbmi:///C00120B05">Open a BBM Channel</a>

I've escalated this issue to the BBM development team.

 

 

 

Users Online
Currently online: 34 members 1,420 guests
Please welcome our newest community members: