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

Testing and Deployment

Reply
Trusted Contributor
Posts: 117
Registered: ‎02-29-2012
My Device: PlayBook & Nexus 4
Accepted Solution

Link to app page at App World?

[ Edited ]

Say you want to provide a link to your app at BlackBerry App World so that a Playbook user who browses to your Web page can click-install the app on his tablet. This should be simple but in fact it is not obvious. The app URL that I found using a desktop browser (e.g., appworld.blackberry.com/webstore/content/<app_id>/?lang=en) does launch "App World" on the Playbook but fails to open the actual app page; instead, I get a message reading "This item is not supported by your current device profile". I suppose my mistake is trying to open in the mobile browser a link built for a desktop browser.

 

How  can I create a link to an app page at BlackBerry App World that opens that page in "App World" on the Playbook? Thanks.

Developer
Posts: 97
Registered: ‎05-12-2009
My Device: PlayBook
My Carrier: 3

Re: Link to app page at App World?

This is documentation specific to the native SDK, but the URI may still work regardless of what technology you're using. Worth a shot right?

https://bdsc.webapps.blackberry.com/native/reference/com.qnx.doc.bps.lib_ref/com.qnx.doc.bps.lib_ref...
-------
You can find me (sporadically) writing and developing at http://floor4.co.uk and gaming at http://uk-tf.co.uk
My Apps: Flip!
Trusted Contributor
Posts: 117
Registered: ‎02-29-2012
My Device: PlayBook & Nexus 4

Re: Link to app page at App World?

[ Edited ]

Thanks, falo, it works!

 

function set_link()
{
    var ua = navigator.userAgent;
    if (ua.indexOf("PlayBook") >= 0)
    {
        document.getElementById("link").innerHTML = "<a href='appworld://content/00000'>Install</a>";			
    }
    else
    {
        document.getElementById("link").innerHTML = "<a href='http://appworld.blackberry.com/webstore/content/00000/?lang=en'>Download</a>";
    }
}

/* where "00000" is the numerical ID of my app at App World and "link" is the HTML id of a <p id="link"></p> element */

 

Developer
Posts: 97
Registered: ‎05-12-2009
My Device: PlayBook
My Carrier: 3

Re: Link to app page at App World?

Happy to help. I'm hoping at some point there'll be a similar appworld://vendor URI as well.
-------
You can find me (sporadically) writing and developing at http://floor4.co.uk and gaming at http://uk-tf.co.uk
My Apps: Flip!