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
Trusted Contributor
sh2sg
Posts: 177
Registered: ‎03-10-2011
My Device: Not Specified
Accepted Solution

Open AppWorld client from WebWorks apps?

Hi, 

 

To open AppWorld client from WebWorks apps, presently I am using invoke web browser to open the AppWorld Web Store URL, and browser will then auto-open AppWorld client for you.

 

Is there a way to open AppWorld client directly? 

 

Here is the code, I suspect it can be done by changing target id, what is the target id for AppWorld Client?

 

function goAppWorld () {
  try {
    blackberry.invoke.invoke(
      {target: "sys.browser", uri: "http://appworld.blackberry.com/webstore/content/xxxxxxx/"},
       function(successEvt) {},
       function(errorEvt) {}
    );
  }
  catch (e) {
  }
}

 

Retired
erikjohnzon
Posts: 245
Registered: ‎09-21-2012
My Device: Q10

Re: Open AppWorld client from WebWorks apps?

Check out the invoking core applications documentation:

https://developer.blackberry.com/html5/documentation/blackberry_world.html

 

Your target is "sys.appworld" the uri should be "appworld://XXXXX".

 

 

@erikjohnzon
erjohnson@blackberry.com
Trusted Contributor
sh2sg
Posts: 177
Registered: ‎03-10-2011
My Device: Not Specified

Re: Open AppWorld client from WebWorks apps?

Thank you, it works as expected!