You can use jsinterop <https://docs.google.com/document/d/10fmlEYIHcyead_4R1S5wKGs1t2I7Fnp_PaNaa7XTEk0/edit#heading=h.o7amqk9edhb9> .
On Mon, 13 Feb 2017 at 13:24 Paul Mazzuca <[email protected]> wrote: > I need to create a javascript function called "handleOpenUrl(url)" that > will be called from a Cordova plugin ( > https://github.com/EddyVerbruggen/Custom-URL-scheme) 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 [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/google-web-toolkit. > For more options, visit https://groups.google.com/d/optout. > -- 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 [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/d/optout.
