xmnboy's Recent Forum Activity

  • cesarzevil -- are you able to login to the XDK forum with your XDK login? They are the same. If you can login to the forum you should be able to login to the XDK.

  • Vegamon007 -- another user provided a project that allowed us to reproduce the issue. We should have it fixed in an upcoming hotfix, probably next week.

  • aviata, Vegamon007, Xam, CEO, rayolaser, ghstudios -- we (Intel XDK) are trying to resolve this issue but having trouble reproducing it. Please provide a ZIP file of an ENTIRE project folder that exhibits the problem so we can reproduce the issue and fix it.

  • cesarzevil -- if your app does not include any Cordova plugins there is a bug we discovered in the Apache Cordova library that causes the Simulate tab to fail. A fix has been identified and will be incorporated in the next release of the XDK. The simplest workaround is to add the core Cordova "Device" plugin to your project. The problem only appears when there are zero plugins in your project, adding one plugin gets rid of the problem. See the known issues section of the XDK release notes for additional details > https://software.intel.com/en-us/xdk/do ... -intel-xdk <

  • heshamahmed, zeroflag, DutovLoppa -- we (Intel XDK) are trying to reproduce this problem but having no luck. If you would provide me with a ZIP of your ENTIRE project folder for a project that illustrates the issue it would help us understand the issue and resolve the problem.

  • Axiomaltd -- we (Intel XDK team) would like to resolve this issue but have yet to find someone who is willing to provide us with a ZIP of their ENTIRE project folder so we can see if we can reproduce the issue and understand what is happening. If you are willing to share a project that exhibits this problem, we might be able to make some progress on resolving the issue.

  • -- glad to see that it is working for you. I'm curious to see if it works for others.

    Regarding the splash screen, that is definitely not the source of this problem. All Ashley is doing, regarding the splash screen, is turning it off with the splash screen hide() function, so that any attempt to delaying it using the additions.xml directive is defeated. This is a secondary problem that has nothing to do with the white bar. I only mentioned it because our experiment with delaying the Cordova splash screen failed. I'll work with Ashley regarding the splash screen, but this is a minor issue and not the source of "pain" that so many have been experiencing with the white bar.

  • -- it is definitely not being caused by the splash screen plugin or the XDK. It appears to be the result of some competition between the Crosswalk webview init and the Android webview init and the C2 canvas init or some other init code ???

    I was able to come up with a solution that works with your example. I hope this works for others, as well.

    Add the following lines to your intelxdk.config.additions.xml file:

    <platform name="android">
        <!-- set Crosswalk default background color -->
        <!-- see http://developer.android.com/reference/android/graphics/Color.html -->
        <!-- <preference name="BackgroundColor" value="0xFFFF0000" /> -->
        <preference name="BackgroundColor" value="0x00000000" />
    </platform>
    [/code:tchgc4ej]
    0x00000000 is supposed to configure the webview background color to be "transparent black"; at least according to the docs and the plugin code...
    [code:tchgc4ej]
    https://github.com/crosswalk-project/cordova-plugin-crosswalk-webview[/code:tchgc4ej]
    [code:tchgc4ej]https://github.com/crosswalk-project/cordova-plugin-crosswalk-webview/search?utf8=%E2%9C%93&q=BackgroundColor[/code:tchgc4ej]
    ...and you should be able to set that color to anything you want. However, I was only able to get black and white out of it. It could be that setting it to fully transparent is having some other impact, I don't know and, honestly, don't have time to pursue this further at this time.
    
    I see you were building against CW18, I did most of my testing against CW17 because I wanted to compare with a non-Crosswalk Android build on Android 5+, as well. So I had to remove your CW override in the additions.xml file (seems there is a bug with leaving that in on Android builds, I've informed XDK engineering). The white band appears to cause your "100% image" to bounce up and down momentarily, which the "transparent black" does not appear to do. I saw a similar "bouncing" with the Android webview, but no color band. All of this makes me suspicious that there is something else going on beyond just the color of the webview background.
    
    Regardless, this solution appears to work.
    
    Regarding the inability to effect the timeout value of the splash screen delay using the "SplashScreenDelay" directive, that is due to some code tucked inside the C2 lib file that is making a call to navigator.splashscreen.hide() during initialization. It appears there is no wait on the Cordova ready and document ready (at least as far as my limited investigation revealed). I will recommend a different approach to Ashley, because the approach in the code you provided does not give you a way to control that part of your app just using the delay directive.
  • -- can you share a project with me that suffers from this problem? You can send me a PM on this forum with a download link. What I would need is for your to ZIP the ENTIRE Intel XDK project folder. Then I can look at configuration issues and try to change a few things in order to understand what's going on.

  • Cipriux -- it would be helpful for me to understand what your game does for initialization. Since I don't create C2 games I don't know what the typical init code looks like. If you could share a dummy game that does what you are describing, and provide that to me for testing, I might be able to figure out what's going on (Cordova init, plugin init, C2 init, something else...).

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • -- thank you for posting that video, I have definitely not seen that. I suspect your app has not finished initializing and needs more time for the splash screen.

    Check this post:

    construct.net/en forum /viewtopic.php?f=146&t=170399&p=1033522#p1033522

    (remove the spaces from the URL, I don't have enough points to post URLs on this forum)

    It might provide some useful bits on how to address that.

    If you could do this simple experiment for me and report if you continue to see the white line, it would help me to understand more about what's going on. Add the following lines to your intelxdk.config.additions.xml file:

    <platform name="android">
        <!-- below requires the splash screen plugin -->
        <!-- see https://github.com/apache/cordova-plugin-splashscreen for details -->
        <preference name="SplashScreen" value="screen" />
        <preference name="AutoHideSplashScreen" value="true" />
        <preference name="SplashScreenDelay" value="10000" />
        <preference name="FadeSplashScreen" value="false"/>
        <preference name="SplashMaintainAspectRatio" value="false" />
        <preference name="SplashShowOnlyFirstTime" value="false" />
    </platform>
    [/code:2htlt6ph]
    In particular, the 10000 value for the splash screen delay should delay the splash screen for 10 seconds, but only if the AutoHideSplashScreen is set to "true". 
    
    Unfortunately, I don't know if Ashley is adding anything in the auto-generated app code to do something programmatically with the splash screen API, so I can't say with certainty this will last 10 seconds, but if he's not doing anything, it should last ~10 seconds. Then let me know if the splash screen "hides" that stuff or if it just gets tacked onto the 10 second delay. 
    
    In other words, what I want to know is, by doing this, does it simply delay the appearance of the white bar by 10 seconds or do you no longer see the white bar (because it's "behind" the splash screen). In either case, the splash screen should last for ~10 seconds. If it does not last for ~10 seconds, I want to know that, as well.
    
    Thanks.
  • -- if you are seeing a black screen the splash screen is likely being turned off too early, because your game or Cordova (or both) is probably still initializing. If you are using a simple delay value in the intelxdk.config.additions.xml file to set the splash screen delay (or just accepting the default, which I think is 2 or 3 seconds) but your game is taking longer to initialize, you could see something like that. For example, if you're relying on a line like this in the additions file which is used by the splash screen plugin:

    <preference name="AutoHideSplashScreen" value="true" />
    [/code:1no0ocfi]
    The splash screen plugin includes an API that can be used to effectively "synchronize" the completion of Cordova and Construct2 game initialization, so the splash screen remains until everything is ready to run. However, to use that technique, you need to understand how to write custom JavaScript in your C2 app AND know how to recognize when the Cordova bit is initialized as well as when the C2 bit is initialized. To synchronize the splash screen with just the Cordova init, you would set the line I show above to "false" and do something like this in your app:
    
    [code:1no0ocfi]
    function onAppReady() {
        if( navigator.splashscreen && navigator.splashscreen.hide ) {   // Cordova API detected
            navigator.splashscreen.hide() ;
        }
    }
    document.addEventListener("app.Ready", onAppReady, false) ;
    // document.addEventListener("deviceready", onAppReady, false) ;
    // document.addEventListener("onload", onAppReady, false) ;[/code:1no0ocfi]
    
    See the Cordova splash screen plugin for complete documentation > https://github.com/ apache /cordova-plugin-splashscreen (remove the spaces in the URL, I don't have enough points to post URLs on this forum).
xmnboy's avatar

xmnboy

Member since 24 Feb, 2016

None one is following xmnboy yet!

Trophy Case

  • 8-Year Club
  • Email Verified

Progress

9/44
How to earn trophies