04-18-2012 12:42 PM
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.
Solved! Go to Solution.
04-18-2012 04:10 PM
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...
(If you need help invoking the app, it is done like invoking any other java app on the device)
04-18-2012 04:50 PM
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.
04-19-2012 05:39 PM
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.
07-18-2012 02:19 AM
08-22-2012 11:05 AM
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!