Ajax request do not work on android with R275 version

0 favourites
  • 2 posts
From the Asset Store
A simple Map Editor that where you can edit a map with restriction or totally. You can save and load the map created.
  • Hi,

    I export my game via cordova and I build the apk on phonegap build but on my mobile all ajax requests no longer work while it worked correctly with the old version of construct2. Ajax requests on the other hand work on the PC, so there must be a problem with the configuration file created by cordova?

    <?xml version="1.0" encoding="UTF-8"?>
    <widget xmlns="http://www.w3.org/ns/widgets" xmlns:gap="http://phonegap.com/ns/1.0" id="com.test.test" android-version="1" version="">
    	<author href="http://test.com" email="test@gmail.com">tester</author>
    	<icon src="icon-128.png" width="128" height="128" />
    	<icon src="icon-256.png" width="256" height="256" gap:role="default" />
    	<preference name="permissions" value="none"/>
    	<preference name="android-targetSdkVersion" value="28" />
    	<feature name="http://api.phonegap.com/1.0/network"/>
    	<preference name="orientation" value="default" />
    	<preference name="fullscreen" value="true" />
    	<gap:config-file platform="ios" parent="UIStatusBarHidden"><true/></gap:config-file>
    	<gap:config-file platform="ios" parent="UIViewControllerBasedStatusBarAppearance"><false/></gap:config-file>
    	<preference name="deployment-target" value="8.0" />
    	<preference name="android-minSdkVersion" value="21" />
    	<plugin name="cordova-plugin-crosswalk-webview" source="npm" />
    	<plugin name="cordova-plugin-wkwebview-engine" />
    	<plugin name="cordova-plugin-file" />
    	<plugin name="cordova-plugin-httpd" />
    	<plugin name="cordova-plugin-whitelist" source="npm" />
    	<access origin="*" />
    	<!-- Optional splash screen image, e.g.: -->
    	<!-- <gap:splash src="splash.png" width="1024" height="768" /> -->

    Thanks for your help

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hello, I solved the problem by putting the files called by ajax on an HTTPS server!

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)