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


Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.


Reply
New Contributor
Posts: 9
Registered: ‎12-14-2010
My Device: 9930
My Carrier: AT&T
Accepted Solution

Launch BlackBerry WebWorks app via URL with parameters?

I have a WebWorks app that I would like to launch from a browser URL, and pass URL query parameters to the app that way. Can this be done? How? I would be happy to use HttpFilterRegistry or the Invoke API, but I don't see how to use those approaches to obtain the parameters from within my WebWorks app, even if I write a custom extension. Sample code would be very helpful, especially for consuming the parameters. Or at least an indication of which API(s) can do this.

Will
Contributor
Posts: 44
Registered: ‎12-01-2009
My Device: Not Specified

Re: Launch BlackBerry WebWorks app via URL with parameters?

This should be taken care of by the framework. What I would recoemmend is simply invoking the application as per normal and placing the parameters in the URL with the standard  "&" "?" notation.

 

Then leverage the UTIL JS class to pull out the required passed parameters... 

https://bdsc.webapps.blackberry.com/html5/apis/blackberry.utils.URL.html

 

(If you need help invoking the app, it is done like invoking any other java app on the device)

 

R

New Contributor
Posts: 9
Registered: ‎12-14-2010
My Device: 9930
My Carrier: AT&T

Re: Launch BlackBerry WebWorks app via URL with parameters?

Thanks!  I think that's enough to get me started implementing the consumption side.  Could you point me to anything about launching a Java app from a URL?  Perhaps I need to use HttpFilterRegistry.registerFilter()?  Not sure how/where to do that in WebWorks.

Will
Contributor
Posts: 44
Registered: ‎12-01-2009
My Device: Not Specified

Re: Launch BlackBerry WebWorks app via URL with parameters?

New Contributor
Posts: 9
Registered: ‎12-14-2010
My Device: 9930
My Carrier: AT&T

Re: Launch BlackBerry WebWorks app via URL with parameters?

Ok, thanks!  Hopefully that's easy from WebWorks.  =)  I guess I have to write an extension and include the HttpFilterRegistry.registerFilter() call and Protocol.java implementation there.

Will
Developer
Posts: 158
Registered: ‎01-11-2010
My Device: 9700 | 9900 | PlayBook | Dev Alpha
My Carrier: Many :)

Re: Launch BlackBerry WebWorks app via URL with parameters?

Hi there. Did you ever manage to solve this? If so, how? I am exploring similar functionality for an application i am writing. Thanks for your time.
- - - - - - - - - -
Highlighted
New Developer
Posts: 6
Registered: ‎05-10-2012
My Device: BlackBerry PlayBook 16BG
My Carrier: None

Re: Launch BlackBerry WebWorks app via URL with parameters?

I'm facing the same problem. Registering a custom uri scheme for the PlayBook on the Adobe Air platform is really easy. Is there a solution yet for this problem?

 

Thank you in advance!