Monday, February 13, 2017

JsInterop Question regarding execution in index.html

I need to create a javascript function called "handleOpenUrl(url)" that will be called from a Cordova plugin (  for a hand off from a mobile browser.  If I create the function inside my index.html, it is called successfully. The challenge is how do I move the execution into my GWT module?  

My ideas are...

1:  Somehow create a GWT method that is recognized in the global js namespace as "handleOpenUrl"?  I know method names get compiled out, so I am not sure how I would accomplish this.  

2.  Leave the handleOpenUrl inside the index.html, but somehow call a GWT method from that?

Any thoughts/ideas would be much appreciated.

You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To post to this group, send email to
Visit this group at
For more options, visit

No comments:

Post a Comment