mageekm's Recent Forum Activity

  • Like most projects I was looking to do both an Apple and Android version. I thought Android would be the easiest to start. Not the case.

    Did C3 export to Cordova iOS xCode and fired up my Apple development system. As usual, lost a day upgrading the operating system and installing xcode 9 but the result is that the simulators run the code perfectly. Great job, Scirra! Now need to figure out how to migrate from xcode to app store. It has been awhile and a lot has changed. Looking for a good tutorial.

    This leads me to believe the culprit is the plugins loaded. There have been so many version changes they are probably out of sync. Suspect I will have to set up the whole cordova environment that bypasses the XDK to work it thru. It would be nice if the C3 build worked.

  • Thanks for the prompt reply.

    AndreasR: The in app browser plugin is automatically included. I wonder if it might be the problem. I haven't figured out how to NOT have it included. Currently using the Browser plugin automatically includes it into your project when exported. Usually found in the plugin directory that is created.

    Kyatic: I have tried many iterations bypassing the Intel XDK. Both using C2 and C3. Bottom line, Browser simply is no longer working on Android devices once exported. Phonegap requires a paid subscription which I am reluctant to engage for something that may or may not work.

    Note that the only place to enter whitelist info is in the Intel XDK build setup. Using the C3 export build process does not allow any white list entry. I have attempted to edit the config.xml file generated but C3 build creates and uneditable version of config.xml.

    The browser action statement I listed above is the capx code needed to test. Pretty simple.

    Looks like I need to submit a bug report.

    Regards,

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I am using the Browser action (Open URL in a new window) in my app. Works fine in preview mode. When I export to Cordova and create an apk, the Browser call is ignored once running on an Android device. I have created a simple test program that does nothing but make the call. Tried this with Construct 2 and 3. Works perfectly in preview mode in both versions. I have been trying various combinations of exporting to Cordova and then to the Intel XDK then using Construct 3 build to create a debug apk. Since Intel has depreciated their XDK features such as white listing are not supported in Intel App preview. You have to test it on an actual device. I have tried no less than 50 combinations that vary from using a debug apk to publishing an alpha version on play store.

    I have tried backtracking to kitkat with C2 and then importing into the C3 builder but I can't see where to edit the white listing tags. I have tried all available versions of Cordova with Crosswalk and without.

    These calls used to work on older versions. I suspect that newer security measures either in Cordova, Android or the browsers themselves are killing the action. I do have two year old apps on my phone that use this call just fine. What changed?

    I have tried using the wildcards "*" in the XDK build specs but they seem to have no effect. I have tested access, intent, and navigation.

    Here is a simple action.

    -> Browser: Go to "http://maps.google.com" in a new window ("Google Maps")

    Anyone who can suggest or can make the Browser function actually work on an Android phone would be a rock star to me. I have been testing this for a week.

    Regards,

  • thank you for your response.

    If that is the only way then why does the AJAX plugin have the "set request header" action?

    All I am after is a real example of how to do this action's parameters.

    If I understand your response then:

    Header "Access-Control-Allow-Origin"

    Value "*" should work.

    It does not.

  • The manual states to:

    If you want AJAX requests to your server to work from any domain, or in preview, you can configure it to send the following HTTP header:

    Access-Control-Allow-Origin: *

    it is not clear to me what goes where when setting this up? This does not work.

    Parameters for AJAX: Set request header

    Header "Access-Control-Allow-Origin:*"

    Value ""

    How exactly should I be filling this out?

  • Problem Description

    generates a ton of errors which I ignore about pngout.exe. construct2 message says it is a bug and to report it to you.

    attached a screenshot.

    the export was able to complete by ignoring the error message.

  • This is exactly the problem I am having trying to retrieve an XML file from my website. I can find no example of how to follow this instruction.

    ----------------------------------- from the manual -----------------------------------------------

    If you want AJAX requests to your server to work from any domain, or in preview, you can configure it to send the following HTTP header:

    Access-Control-Allow-Origin: *

    --------------------------------------

    I tried sending a header using the AJAX send header action with the following values

    Header: "Access-Control-Allow-Origin:" Value: "*"

    Then followed it with an AJAX request url action. No luck. any suggestions?

mageekm's avatar

mageekm

Early Adopter

Member since 25 Dec, 2012

None one is following mageekm yet!

Trophy Case

  • 11-Year Club
  • Email Verified

Progress

12/44
How to earn trophies