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: 275
Registered: ‎02-05-2010
My Device: Blackberry Z10
My Carrier: Bouygues Telecom

Search application and card invocation

[ Edited ]

Hi,

 

I found the code to display my app in the Extended Search section of the Search application :

 

<invoke-target id="com.xyz.test">
<invoke-target-type>APPLICATION</invoke-target-type>
<filter>
<action>bb.action.SEARCH.EXTENDED</action>
<mime-type>application/vnd.bb.search.criteria</mime-type>
</filter>
</invoke-target>

 But, what if I already have the code below in my bar-descripor.xml ?

 

<invoke-target id="com.xyz.invoc">
<invoke-target-name>All in One Search App</invoke-target-name>
<icon><image>icon.png</image></icon>
<type>application</type>
<filter>
	<action>bb.action.SHARE</action>
	<mime-type>text/plain</mime-type>
</filter>
</invoke-target>

 

I'm asking about the 'invoke-target' id. Should it be different in both declarations or the same ?

Thank you for your help, Laurent

Twitter : @LaurentKP
My apps
Retired
Posts: 252
Registered: ‎08-17-2012
My Device: BlackBerry Z10 and Q10
My Carrier: Bell

Re: Search application and card invocation

[ Edited ]

Hi laurentc,

 

The invoke-target id incorporates your package name in the BAR file so that it uniquely identify your applicaiton. For more information on the invoke-target attribute, checkout the following two links:

 

http://developer.blackberry.com/native/documentation/core/com.qnx.doc.native_sdk.devguide/topic/r_ba...

http://developer.blackberry.com/native/documentation/core/com.qnx.doc.native_sdk.devguide/topic/r_ba...

@SamarAbdelsayed

Did this answer your question? Please accept post as solution.
Please refrain from posting new questions in solved threads.
Found a bug? Report it using the Issue Tracker
Developer
Posts: 275
Registered: ‎02-05-2010
My Device: Blackberry Z10
My Carrier: Bouygues Telecom

Re: Search application and card invocation

I just tried to use the same invoke-target id . It's not working.

Twitter : @LaurentKP
My apps
Retired
Posts: 252
Registered: ‎08-17-2012
My Device: BlackBerry Z10 and Q10
My Carrier: Bell

Re: Search application and card invocation

Hi laurentC, checkout the bar-descriptor of the invoketarget sample app available here:

 

https://github.com/blackberry/Cascades-Samples/blob/fe77eb45392acd58a2074b841cd493a3d759da32/invoket...

@SamarAbdelsayed

Did this answer your question? Please accept post as solution.
Please refrain from posting new questions in solved threads.
Found a bug? Report it using the Issue Tracker
Developer
Posts: 275
Registered: ‎02-05-2010
My Device: Blackberry Z10
My Carrier: Bouygues Telecom

Re: Search application and card invocation

Hello,

I just tried with different invoke target id, the extended search is not working. I can't see my app listed. The other invocation works fine.

If I put the same name in invoke target id, both invocations are not working 

 

Laurent

Twitter : @LaurentKP
My apps
Retired
Posts: 252
Registered: ‎08-17-2012
My Device: BlackBerry Z10 and Q10
My Carrier: Bell

Re: Search application and card invocation

Hi laurentC, if you think you are facing a bug, then please report it using the BlackBerry issue tracker available here: https://www.blackberry.com/jira/secure/Dashboard.jspa.

 

There, please provide a minimal sample project that will help our internal teams reproduce the issue. Also, once that is done please come back to this post and provide a link to the created jira issue.

 

Thanks,

@SamarAbdelsayed

Did this answer your question? Please accept post as solution.
Please refrain from posting new questions in solved threads.
Found a bug? Report it using the Issue Tracker
Developer
Posts: 1,746
Registered: ‎04-08-2010
My Device: Passport Silver, PRIV
My Carrier: Telekom.de, O2, Vodafone

Re: Search application and card invocation

sometimes it helps to reboot the device if Invocation fails

-------------------------------------------------------------------------------
ekke (independent software architect, rosenheim, germany)

BlackBerry Elite Developer
BlackBerry Platinum Enterprise Partner
International Development native Mobile Business Apps
BlackBerry 10 | Qt Mobile (Android, iOS)
Workshops / Trainings / Bootcamps

blog: http://ekkes-corner.org
mobile-development: http://appbus.org Twitter: @ekkescorner
Highlighted
Retired
Posts: 749
Registered: ‎12-16-2008
My Device: BlackBerry Z30
My Carrier: Bell

Re: Search application and card invocation

Does the "extended search sample" listed here work for you? http://devblog.blackberry.com/2013/06/search-blackberry10/ You should have a different target-id for each target.
Paul Bernhardt
Application Development Consultant
BlackBerry
@PBernhardt

Did this answer your question? Please accept this post as the solution.
Found a bug? Report it to the Developer Issue Tracker