Hello, I am using ajax request to retrieve data from my webserver. When I use it on C2 preview it works fine. When I compile it using plugin cordova-plugin-crosswalk-webview it works fine on my mobile too. Only when I compile without crosswalk it does not work, going to ajax->on error and returning no data.
I am testing on Android, exporting on cordova and compiling on phonegap.
I do not want to use crosswalk as my app size goes from 3mb to 33mb. Any idea what is going on?
This is my code:
This is my config.xml that does not work.
<?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.gaminiuk.InfobrasFSe" version="2.0.1">
<name>InfobrasFSe</name>
<description>InfobrasFSe</description>
<author email="gaminiukco@gmail.com">Gaminiuk Corporation</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="29" />
<feature name="http://api.phonegap.com/1.0/network"/>
<feature name="http://api.phonegap.com/1.0/camera"/>
<preference name="orientation" value="portrait" />
<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" />
<plugin name="cordova-plugin-whitelist" source="npm" />
<access origin="*" />
<plugin name="cordova-plugin-barcodescanner" source="npm" />
<plugin name="cordova-plugin-inappbrowser" source="npm" />
<!-- -->
<!-- <gap:splash src="splash.png" width="1024" height="768" /> -->
</widget>