title: Phonegap WP8 and GWT
body: <p>I am trying to make a GWT application work on a WP8 device using phone gap but to no success.
  The onModuleLoad is never called.</p>
  
  <p>When I just put a plain html file in the www directory of the wp8 platform it displays and runs just fine on a wp8 device.</p>
  
  <p>A GWT website however just gives a white screen. When I put a Window.alert at the first line of the onModuleLoad it never gets called.</p>
  
  <p>The GWT app runs fine using Phonegap on iOS and Android...</p>
  
  <p>The HTML code I have is only :</p>
  
  <pre><code>&lt;!doctype html&gt;
      &lt;html&gt;
          &lt;head&gt;
              &lt;title&gt;Jqm&lt;/title&gt;
              &lt;meta charset="utf-8"&gt;
              &lt;meta http-equiv="content-type" content="text/html; charset=UTF-8"&gt;
              &lt;meta name="viewport" content="width=device-width, minimum-scale=1, maximum-scale=1"&gt;
              &lt;script type="text/javascript" language="javascript" src="jqm/jqm.nocache.js?r=20140916"&gt;&lt;/script&gt;    
              &lt;script type="text/javascript" charset="utf-8" src="cordova.js"&gt;&lt;/script&gt;   
          &lt;/head&gt;
    &lt;body&gt;
    &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>And in Java GWT I only have</p>
  
  <pre><code>public void onModuleLoad()
  {
     Window.alert("onModuleLoad");
     RootLayoutPanel.get().add(new Label("test"));
  }
  </code></pre>
  
  <p>Only thing in phonegap I did was : phonegap platform add wp8... Put the output of the GWT compiler in the www directory of WP8 platform. And try to run in VS2013.
  I also tried it by putting the generated gwt www code in the main www folder of the phonegap structure. And then doing a "phonegap emulate wp8" (this is the way I always use for Android). 
  But both failing.</p>
  
  <p>If I add a script tag to the head to listen for phonegap to become ready it does become ready... But not entering onModuleLoad ever...</p>