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: 237
Registered: ‎11-24-2012
My Device: Blackberry 10 Dev Alpha
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

Developer
hakimrie
Posts: 82
Registered: ‎07-23-2009
My Device: 9900

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."
            }
}

 

Developer
Kaz32
Posts: 237
Registered: ‎11-24-2012
My Device: Blackberry 10 Dev Alpha

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?

Developer
tanphat1412
Posts: 125
Registered: ‎11-06-2012
My Device: BlackBerry

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.

Developer
Kaz32
Posts: 237
Registered: ‎11-24-2012
My Device: Blackberry 10 Dev Alpha

Re: How to share text over BBM Group

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

- InvokeTargetId

- InvokeActionId

- mimeType

 

Thanks

Developer
bbquincar
Posts: 304
Registered: ‎08-14-2012
My Device: PlayBook, Z10, Dev C

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
BlackBerry Development Advisor
MSohm
Posts: 14,757
Registered: ‎07-09-2008
My Device: BlackBerry Passport

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
Contributor
liuksmith
Posts: 41
Registered: ‎09-13-2011
My Device: BlackBerry Z10 Limited Edition

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.

BlackBerry Development Advisor
MSohm
Posts: 14,757
Registered: ‎07-09-2008
My Device: BlackBerry Passport

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
Contributor
liuksmith
Posts: 41
Registered: ‎09-13-2011
My Device: BlackBerry Z10 Limited Edition

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