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
Posts: 33
Registered: ‎12-05-2013
My Device: Z10
My Carrier: 123456789
Accepted Solution

Invoke Target as Email, Phone number handler

Hi,

 

I don't know how to config my bar-descriptor.xml for my app being an invoke target which handle email address, phone number. I guess these are text/plain and action might be one of these or all:

 

<action>bb.action.SHARE</action>
<action>bb.action.VIEW</action>
<action>bb.action.OPEN</action>

 

Simply to say, when press and hold on a message title/header/address in the Hub, it should provide my app as one among target apps on the overflow menu which can handle the email or phone number.

 

Please help.

Retired
Posts: 249
Registered: ‎07-14-2008
My Device: Not Specified

Re: Invoke Target as Email, Phone number handler

This is currently not supported. You can however, let the user share the message with your app. You need to register your app as shown below:

 

 

  <invoke-target id="com.example.bb10samples.invocation.hub">
        <invoke-target-name>My Hub</invoke-target-name>
        <icon><image>icon.png</image></icon>
        <type>card.composer</type>
 		<filter>
 			<action>bb.action.SHARE</action>
 			<mime-type>message/rfc822</mime-type>
 			<property var="uris" value="pim:"/>
		</filter>       
    </invoke-target>
 

 

Developer
Posts: 33
Registered: ‎12-05-2013
My Device: Z10
My Carrier: 123456789

Re: Invoke Target as Email, Phone number handler

Thank you Shadid, Could you please show me how to extract the data coming along with the invoke as well?

 

 

Developer
Posts: 33
Registered: ‎12-05-2013
My Device: Z10
My Carrier: 123456789

Re: Invoke Target as Email, Phone number handler

Nevermind, i got it working. You are awesome Shadid Smiley Wink

Developer
Posts: 33
Registered: ‎12-05-2013
My Device: Z10
My Carrier: 123456789

Re: Invoke Target as Email, Phone number handler

Oh it works for Email but not SMS/Text Message if i add another filter with mime-type as "vnd.blackberry.sms"

 

Please advise, thank you so much.