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

BlackBerry® World™ Development

Reply
Contributor
awjenning
Posts: 38
Registered: ‎08-06-2011
My Device: PlayBook
My Carrier: T-Mobile
Accepted Solution

PlayBook WebWorks: How to provide link to full application

Hello I am about to submit an application that will have a trial version and a full version. They will be seperate applications (unique skus).  I want to provide a way for the user to install the full application from the trail application. At this point I don't need anything fancy. Pehaps the trial can just provide a link to the full application in App World. 

 

I know I have seen this discussed on here but I cannot find the information. Any help would be appreciated.

Please use plain text.
Contributor
awjenning
Posts: 38
Registered: ‎08-06-2011
My Device: PlayBook
My Carrier: T-Mobile
Please use plain text.
Regular Contributor
fgoyti
Posts: 70
Registered: ‎06-15-2011
My Device: Bold 9900
My Carrier: Bell Canada

Re: PlayBook WebWorks: How to provide link to full application

When I make a link, I get an error, "http://appworld.blackberry.com........ is not allowed"

Do I have to allow some stuff in the config.xml?

Please use plain text.
Developer
squished18
Posts: 289
Registered: ‎10-17-2008
My Device: Torch 9800
My Carrier: Rogers

Re: PlayBook WebWorks: How to provide link to full application

When I try to put a link in my app to App World, I get the following error message when trying to open the link from inside the app:

 

The browser could not handle the webpage.

 

I know the link is fine, because I entered the link address into the browser and it worked. Do I have a permissions problem?

 

I put the tag <access uri="*"/> in my config.xml file.

 

Any ideas?

 

Thanks,

 

feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
Please use plain text.
Regular Contributor
fgoyti
Posts: 70
Registered: ‎06-15-2011
My Device: Bold 9900
My Carrier: Bell Canada

Re: PlayBook WebWorks: How to provide link to full application

Yes, add this to your config.xml and I got it to work for me

 

<access uri="http://appworld.blackberry.com" subdomains="true" />

 

Please use plain text.
Contributor
DMA2011
Posts: 33
Registered: ‎09-19-2011
My Device: playbook
My Carrier: none

Re: PlayBook WebWorks: How to provide link to full application

This code works - It is documented somewhere, but sorry can't find it again - took a fair bit of finding originally!



var url = "http://appworld.blackberry.com/webstore/content/" + appId;
       

 var args = new blackberry.invoke.BrowserArguments(url);
 blackberry.invoke.invoke(blackberry.invoke.APP_BROWSER, args);


 you need these extra lines in config.xls as well as the access statement.

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

 

Hope this helps.

Please use plain text.
Developer
squished18
Posts: 289
Registered: ‎10-17-2008
My Device: Torch 9800
My Carrier: Rogers

Re: PlayBook WebWorks: How to provide link to full application

Hi fgoyti:

 

Would you mind sharing your config.xml that you got to work? I tried inserting that line, but am still getting the error message.

 

Cheers,

feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
Please use plain text.
Developer
squished18
Posts: 289
Registered: ‎10-17-2008
My Device: Torch 9800
My Carrier: Rogers

Re: PlayBook WebWorks: How to provide link to full application

Hi DMA2011,

 

I used your solution and it works. Thanks everybody!

 

Cheers,

 

feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
Please use plain text.