01-25-2013 08:01 PM
Has anyone launched App World to one title from javascript. I tried this on dev alpha and it isn't working :
function openWebLinkInBrowser(URL) {
// open web link in browser
blackberry.invoke.invoke({
target: "sys.browser",
uri:URL
}, onInvokeSuccess, onInvokeError);
}
function appWorld(appId)
{
try
{
var url = "http://appworld.blackberry.com/webstore/content/" + appId;
openWebLinkInBrowser (url) ;
}
catch (e) {
showCustomToast("There was a problem launching App World", "OK");
}
}
Solved! Go to Solution.
01-26-2013 03:12 AM
This works in playbook to open at a specific app.
var url = "http://appworld.blackberry.com/webstore/content/10
try {
var args = new blackberry.invoke.BrowserArguments(url);
blackberry.invoke.invoke(blackberry.invoke.APP_BRO
}
catch (e) {
alert('exception (Appworld): ' + e.name + '; ' + e.message);
}
}
01-26-2013 07:40 AM
I use something similar to this in Cascades and it works.....but not working in Webworks.....perhaps I have a parameter wrong :
var request = {
"type": "application/x-bb-appworld",
"uri": "appworld://content/12603",
"action": "bb.action.OPEN",
"action_type": "ALL"
};
blackberry.invoke.query(request, onInvokeSuccess, onInvokeError);
01-28-2013 12:26 PM
Here is some documentation from Cascades that describes the invoke targets... https://developer.blackberry.com/cascades/document
You can do it by issueing the following which is an un-bound. As you can see from the documentation you can also add in the target if you wish, but the uri protocol is the important part.
blackberry.invoke.invoke({
"uri": "appworld://content/12603",
"action": "bb.action.OPEN",
"action_type": "ALL"
})
Please replace the 12603 with the content you wish to show.