09-26-2013 03:36 AM
I have an app, which I want to register for OS Search (i.e when users start typing in Search field, my app icon shows up and my app is started). To achieve this I use following in config.xml
<rim:invoke-target id="com.myapp"> <type>APPLICATION</type> <filter> <action>bb.action.SEARCH.EXTENDED</action> <mime-type>application/vnd.bb.search.criteria</mim
e-type> </filter> </rim:invoke-target>
To register as global SHARE target I use following code:
<rim:invoke-target id="com.myapp"> <type>card.composer</type> <filter> <action>bb.action.SHARE</action> <mime-type>application/*</mime-type> <mime-type>text/*</mime-type> <mime-type>audio/*</mime-type> <mime-type>image/*</mime-type> <mime-type>message/*</mime-type> <mime-type>video/*</mime-type> <property var="uris" value="http://,https://,data://local,file://
"/> </filter> </rim:invoke-target>
The issue is that I can't have both at the same time. If I register for Search I cannot use the SHARE, and if I register for SHARE I cannot use the Search integration.
It's because of the <type> tag, in first case its value has to be "APPLICATION" and in second case it has to be "card.composer".
And I can't register two <rim:invoke-target id="com.myapp"> with different <type>
Any ideas for workarounds? Or it is a system limitation I have to live with?
Solved! Go to Solution.
09-28-2013 08:34 AM
10-01-2013 08:03 AM
Thank you, it worked. I was under the false impression, that the target-id must be the same as my appId, thus the confusion.