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

Reply
Developer
Kaz32
Posts: 236
Registered: ‎11-24-2012
My Device: Blackberry 10 Dev Alpha
My Carrier: Telkomsel
Accepted Solution

How to share text over BBM Group

Hi I want to share text over BBM Group. How to do that ?

 

If over BBM (specific contact) I use :

 

InvokeActionItem {
            title: "Share Text Over BBM"
            query {
                mimeType: "text/plain"
                invokeTargetId: "sys.bbm.sharehandler"
                invokeActionId: "bb.action.SHARE"
                data: "This is some text to share."
            }
        }

And it works, but how to share over BBM Group?

 

And is there any documentation about complete list of possible value for :

- InvokeTargetId

- InvokeActionId

- mimeType

 

 

 

 

Thanks

Please use plain text.
Developer
hakimrie
Posts: 82
Registered: ‎07-23-2009
My Device: 9900
My Carrier: XL

Re: How to share text over BBM Group

I think you can just share data without specify targetid so, bot bbm contact & bbm group will available :

 

InvokeActionItem {
            title: "Share Text"
            query {
                mimeType: "text/plain"
                invokeActionId: "bb.action.SHARE"
                data: "This is some text to share."
            }
}

 

Please use plain text.
Developer
Kaz32
Posts: 236
Registered: ‎11-24-2012
My Device: Blackberry 10 Dev Alpha
My Carrier: Telkomsel

Re: How to share text over BBM Group

Hi, I know if not specified target id, will show list of app that can share text (on my device is BBM, BBM groupm and NFC).

 

But if I want to specified to only BBM group is that posible?

Please use plain text.
Developer
tanphat1412
Posts: 123
Registered: ‎11-06-2012
My Device: BlackBerry
My Carrier: Mobifone

Re: How to share text over BBM Group

I want to share text over BBM contact and group too.

Can you tell me how to use InvokeActionItem.

Thanks.

Please use plain text.
Developer
Kaz32
Posts: 236
Registered: ‎11-24-2012
My Device: Blackberry 10 Dev Alpha
My Carrier: Telkomsel

Re: How to share text over BBM Group

Is there any documentation about complete list of possible value for :

- InvokeTargetId

- InvokeActionId

- mimeType

 

Thanks

Please use plain text.
Developer
bbquincar
Posts: 304
Registered: ‎08-14-2012
My Device: PlayBook, Z10, Dev C
My Carrier: Rogers

Re: How to share text over BBM Group

Here you go this section helped me alot 

 

invocation

 

also check out 

 

invoke sharhing this is a great way of doing it also

 

BlackBerry 10 game reviews for the unknown, small and indie developers. Little games with big dreams. VeryBerryGames.com | Follow @VeryBerryGames | TwoCasualCoders.com | never casual on quality
Please use plain text.
Administrator
MSohm
Posts: 14,313
Registered: ‎07-09-2008
My Device: BlackBerry Z30, BlackBerry PlayBook
My Carrier: Bell

Re: How to share text over BBM Group

sys.bbgroups.sharehandler  is the target id for BBM Groups.  Here are a couple of examples on how to share text or an image with a BBM group.  The user will be prompted to select the group to share with.

 

InvokeActionItem {
    title: "Share Text Over BBM Group"
    query {
        mimeType: "text/plain"
        invokeTargetId: "sys.bbgroups.sharehandler"
        invokeActionId: "bb.action.SHARE"
        data: "This is some text to share in a group."
    }
},
InvokeActionItem {
    title: "Share Image Over BBM Group"
    query {
        invokeTargetId: "sys.bbgroups.sharehandler"
        invokeActionId: "bb.action.SHARE"
        uri: "file:///accounts/1000/shared/photos/avatar.png"
    }
}

 

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
Please use plain text.
Contributor
liuksmith
Posts: 41
Registered: ‎09-13-2011
My Device: BlackBerry Z10 Limited Edition
My Carrier: TIM - Italy

Re: How to share text over BBM Group

Hi Mark,

any news about channel and session on bbm api for BB10?

I hope that we have soon  a real integration with bbm.

Please use plain text.
Administrator
MSohm
Posts: 14,313
Registered: ‎07-09-2008
My Device: BlackBerry Z30, BlackBerry PlayBook
My Carrier: Bell

Re: How to share text over BBM Group

We are still planning to bring peer to peer data connection services to BlackBerry 10, similar to channels and sessions.  Dates have not yet been announced.

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
Please use plain text.
Contributor
liuksmith
Posts: 41
Registered: ‎09-13-2011
My Device: BlackBerry Z10 Limited Edition
My Carrier: TIM - Italy

Re: How to share text over BBM Group

Hi Mark,

it's possible to use InvokationFramework to open a file received from BBM?

I'd to send a file with a custom extension (.xyz for example ) throught bbm and automatically call a my application to open this file after I had registered my application to listen this file .xyz with invocation framework

 

regards

Luca

Please use plain text.