10-13-2013 01:59 PM - edited 10-13-2013 03:45 PM
Hi, I want my app to be invoked as soon as google is opened. I added invoke target in bar-descriptor.xml, but it doesn't get ivoked, here's the code:
<invoke-target id="com.staw.testApp"> <invoke-target-type>application</invoke-target-typ
e> <invoke-target-name>TestingApp</invoke-target-name > <icon> <image>icon.png</image> </icon> <filter> <action>bb.action.OPEN</action> <mime-type>text/html</mime-type> <property var="uris" value="http://google.com"/> </filter> </invoke-target>
10-14-2013 04:56 AM
I'm afraid it won't work that way, you can register to have your app as one that can handle web pages, however it will always be up to the user (at least from 10.2 onwards) which app he wants to choose to handle the page.
10-14-2013 04:58 AM
10-14-2013 06:00 AM
10-14-2013 06:11 AM
10-14-2013 06:30 AM
Ah, interesting, my first thoughts would have been that isn't possible but perhaps it is.
Intrigued I quickly put this in a WebView and it did the same thing, so whether this is something that can be handled by invocation or is something they've hard-wired in is something that would need investigating.
Not very helpful, sorry.
10-14-2013 06:33 AM
But take a look at this page, they say it's possible.. Don't know how they expect us to do it..
10-14-2013 06:44 AM
<filter> <action>bb.action.VIEW</action> <action>bb.action.OPEN</action> <mime-type>*</mime-type> <property var="uris" value="http://appworld.blackberry.com"/> </filter>
10-14-2013 08:04 AM
Well I've tried lots of different things, no problem invoking from web pages, sms, emails, etc. but no luck from the browser.
I now suspect that the browser/MapView has this hardwired in, looking for appworld:// and appworld.blackberry.com and only sends an invocation request for those urls.
If someone else wants to take up the gauntlet on this feel welcome, I'd love to be wrong on this one.