christianstrang Posted October 30, 2014 Share Posted October 30, 2014 My current game has a nasty bug when being tested with the CocoonJS-launcher on my Nexus 5:Instead of automatically preloading and starting, I need to click on a link first: url removed It works fine in the browser (phone and desktop) but not with the launcher.Anybody know what might cause this? Update: I use WebView+ Link to comment Share on other sites More sharing options...
Sam Posted October 30, 2014 Share Posted October 30, 2014 This will not solve your problem, but this is the first thing i saw:You're using the DOM. CocoonJS ignores the whole dome except the js files 1 canvas and style with font-family.mainstate: preload:$('#debug').text("preloading!");$('#startbutton').remove();and so on... this code will not work since cocoonJS has no DOM. Link to comment Share on other sites More sharing options...
christianstrang Posted October 30, 2014 Author Share Posted October 30, 2014 Ah sorry, forgot to mention that I use webview+ Link to comment Share on other sites More sharing options...
Sam Posted October 30, 2014 Share Posted October 30, 2014 Okay,does CocoonJS outputs anything in the console?For me mainState is running.I'm not experienced in the use of jQuery with CocoonJS ~ does it matters if you comment the few lines of JQuery out - before loading - Do not know if it change anything. Link to comment Share on other sites More sharing options...
christianstrang Posted October 30, 2014 Author Share Posted October 30, 2014 Does the game start immediately or do you have to press "START GAME" first for the preloader to appear?On which phone did you test it? About the console: I'm not entirely sure if the console is working tbh. My CocoonJSLauncher app has updated recently and my console now looks like this: Link to comment Share on other sites More sharing options...
Sam Posted October 30, 2014 Share Posted October 30, 2014 okay, I only run it trough iOS since that I have no android device available at my current location.But I do not remember the console should look like this. ..I also do not have received an update for - more than 2 month.I will check again when I have an android device available. Link to comment Share on other sites More sharing options...
christianstrang Posted October 30, 2014 Author Share Posted October 30, 2014 The bug seems to only appear with the launcher, after building the apk and installing it on the device it seems to work without issues :/Thank you for helping out Link to comment Share on other sites More sharing options...
Ludei Posted November 3, 2014 Share Posted November 3, 2014 Hello, Sorry for the late response. Could you please provide us with a test case anyway? I see you deleted the URL. We would like to have a look at it in order to solve the problem of the the launcher. Regards. Link to comment Share on other sites More sharing options...
Recommended Posts