GWT phonegap white screen on ios

61 views
Skip to first unread message

kiran kamath

unread,
Sep 7, 2016, 6:03:20 PM9/7/16
to mgwt
I use gwt, smart gwt mobile along with phonegap in my sample application. The application is not working in iOS when i do a phonegap build for ios as i only have a white screen. There are no errors and its difficult for me to understand the problem. Im attaching my gwt.xml file for reference and also the entry point class.

Can someone throw light on the issue as to what additional should be done to debug the problem? In XCode console i dont see any errors. I went through the forum for similar issue and found the issue reported for android.

I use maven to do the GWT compile and this is where i have the problem. When i use the super dev mode, i observed that .nocache.js script is completely different and generated and when i paste this output in www folder of phonegap,everything works fine, there is no white screen but i see "compiling module" and then the application loads. This cannot be ported on the phone because super dev mode is not reachable and not the right way. I want to do like in a production mode here. 

Please let me know where I am going wrong.

index.html
Sign.gwt.xml
Sign.java

Chris French

unread,
Nov 5, 2016, 12:14:59 PM11/5/16
to mgwt
Actually Kiran I think you may have the same problem that I have just posted about. 
Do you get this problem after updating the application with (perhaps) different data structures?  If you do it is a cache problem.
I will let you know if I get a solution
Regards

Chris

paul

unread,
Nov 6, 2016, 4:16:45 PM11/6/16
to mgwt
Sorry I missed this one. Have you sorted things now?

A few things....

You may miss some exceptions on module load since you need to set your uncaught exception handler and then start your application code in a later event execution so that the uncaught exception handler can intercept any uncaught errors in your application startup e.g. in your onModuleLoad....

    GWT.setUncaughtExceptionHandler(uncaught);

    Scheduler.get().scheduleDeferred(new Command() 
    {
      @Override
      public void execute () 
      {
        startupApplication();
      }
    });


You are probably seeing a white screen either because GWT has failed to detect the correct permutation and so does nothing or you application has started but you have not received the phonegap available event which usually means you have not loaded cordova.js and related files successfully.

The reason it works in a browser in super dev mode is you are not using phonegap but an emulated version of phonegap provided by GWT phonegap. Anyway it is hard to help further without further information. You probably already have sorted it! If not feel free to post further, Cheers.


On Wednesday, September 7, 2016 at 11:03:20 PM UTC+1, kiran kamath wrote:
Reply all
Reply to author
Forward
0 new messages