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

Web and WebWorks Development

Reply
Developer
TheMarco
Posts: 669
Registered: ‎02-19-2011
My Device: BlackBerry PlayBook 32GB
My Carrier: Sprint
Accepted Solution

Linking to another app from within an app

I'd like to have a button in my app that fires up BlackBerry World with another one of my apps opened.

 

I tried following this but it's not working for me on BB10.

 

http://supportforums.blackberry.com/t5/Web-and-WebWorks-Development/How-to-open-App-World-from-a-Bla...

 

Has anything changed? Any ideas?

Staff UI Prototyper (read: full-time hacker)


My BB10 apps: Screamager | Scientific RPN Calculator | The Last Weather App

Please use plain text.
Developer
TheMarco
Posts: 669
Registered: ‎02-19-2011
My Device: BlackBerry PlayBook 32GB
My Carrier: Sprint

Re: Linking to another app from within an app

I now have:

 

function onInvokeSuccess() {
console.log("Invocation successful!");
}

function onInvokeError(error) {
console.log("Invocation failed, error: " + error);
}

function appWorld() {
// open web link - allows the system to choose an appropriate target that handles http://
blackberry.invoke.invoke({
uri: "http://appworld.blackberry.com/webstore/content/22052928"
}, onInvokeSuccess, onInvokeError);
}

 

When calling appWorld my console reads:

 

TypeError: 'undefined' is not an object 

 

It refers to the line that reads: blackberry.invoke.invoke({

 

In my config I have:

 

<feature id="blackberry.invoke" required="true" version="1.0.0.0"/>
<feature id="blackberry.invoke.BrowserArguments" required="true" version="1.0.0"/>

 

Ideas welcome!

Staff UI Prototyper (read: full-time hacker)


My BB10 apps: Screamager | Scientific RPN Calculator | The Last Weather App

Please use plain text.
Developer
TheMarco
Posts: 669
Registered: ‎02-19-2011
My Device: BlackBerry PlayBook 32GB
My Carrier: Sprint

Re: Linking to another app from within an app

And that's working too. Turns out I had the feature elements in the wrong place in my config.xml.

Staff UI Prototyper (read: full-time hacker)


My BB10 apps: Screamager | Scientific RPN Calculator | The Last Weather App

Please use plain text.