xmnboy's Forum Posts

  • Please see second part of the top post for possible solution to the black screen problem on iOS 10 > https://software.intel.com/en-us/forums ... pic/685395 <

  • chrisnewman Guinness CDogs1964 -- please see second part of the top post for possible solution to the black screen problem on iOS 10 > https://software.intel.com/en-us/forums ... pic/685395 <

  • Give this a try > http://stackoverflow.com/questions/3841 ... os-10-beta < -- I've searched various forums, including the Cordova project, and am not finding anything specific, other than the link that I just gave you which recommends an update to the CSP tag in your index.html file. Also, this response on the PhoneGap Build forum > https://forums.adobe.com/message/8985487#8985487 < from "kerrishotts" has some useful info.

  • Give this a try > http://stackoverflow.com/questions/3841 ... os-10-beta < -- I've searched various forums, including the Cordova project, and am not finding anything specific, other than the link that I just gave you which recommends an update to the CSP tag in your index.html file. Also, this response on the PhoneGap Build forum > https://forums.adobe.com/message/8985487#8985487 < from "kerrishotts" has some useful info.

  • Give this a try > http://stackoverflow.com/questions/3841 ... os-10-beta < -- I've searched various forums, including the Cordova project, and am not finding anything specific, other than the link that I just gave you which recommends an update to the CSP tag in your index.html file. Also, this response on the PhoneGap Build forum > https://forums.adobe.com/message/8985487#8985487 < from "kerrishotts" has some useful info.

  • razinar -- I do not know how a C2 app works or how it handles Cordova plugins, internally, so I can only speculate...

    [quote:bgrrxexb]Hi guys, i'm using the newest version of C2 and Intel XDK.

    While exporting for Cordova i check the "Hide status bar" box.

    In XDK build setting i check "Fullscreen" box.

    The status bar is not showing while my app is running, which is what i needed.

    However if the screen timeout or the user lock it, when restoring focus on my app the status bar is visible again and won't go away. Problem occours on Samsung Galaxy S5 with Chrome as browser.

    I tried to import the Cordova Status Bar plugin in XDK, and added this action in c2:

    Browser - on resumed - Execute javascript "StatusBar.hide();"

    • I suspect the Cordova export "Hide status bar" does nothing for the XDK part of that export, we do not read the config.xml file, we read the <project-name>.xdk, assuming you used the "open an Intel XDK project" to import that Construct2 project.
    • Thus, the "check fullscreen" in the Build Settings is what is causing your app to go to full screen mode.
    • Calling "StatusBar.hide()" upon resume should do the trick, but you do need to make sure that plugin is part of your app. In the XDK, check the Plugin Manager to see if that plugin is part of your app. Full docs for that plugin are here > https://github.com/apache/cordova-plugin-statusbar <
    • The config.xml preferences mentioned on that doc page can be added to your intelxdk.config.additions.xml file.

    Like I said, I'm speculating, because I don't have detailed knowledge regarding how a C2 app runs internally.

  • 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.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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.