Updated config to fix clear text errors
A net::ERR_CLEARTEXT_NOT_PERMITTED occured when using the app on android phone, we have to force the android to allow the communication to fix the problem. More info : https://stackoverflow.com/a/54752717/10736081 Also fixed a problem with the images path when running the app on mobile.
This commit is contained in:
@ -1,8 +1,8 @@
|
|||||||
<?xml version='1.0' encoding='utf-8'?>
|
<?xml version='1.0' encoding='utf-8'?>
|
||||||
<widget id="net.dariogenga.fecharts" version="1.0.0" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
|
<widget id="net.dariogenga.fecharts" version="1.0.0" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0" xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
<name>FE_Charts</name>
|
<name>FE_Charts</name>
|
||||||
<description>
|
<description>
|
||||||
A sample Apache Cordova application that responds to the deviceready event.
|
Fire Emblem Charts is a mobile application that allows you to view the statistics of the characters in the game Fire Emblem Three Houses in the form of graphics.
|
||||||
</description>
|
</description>
|
||||||
<author email="dev@cordova.apache.org" href="http://cordova.io">
|
<author email="dev@cordova.apache.org" href="http://cordova.io">
|
||||||
Apache Cordova Team
|
Apache Cordova Team
|
||||||
@ -17,10 +17,12 @@
|
|||||||
<allow-intent href="mailto:*" />
|
<allow-intent href="mailto:*" />
|
||||||
<allow-intent href="geo:*" />
|
<allow-intent href="geo:*" />
|
||||||
<platform name="android">
|
<platform name="android">
|
||||||
<allow-intent href="market:*" />
|
<edit-config file="app/src/main/AndroidManifest.xml" mode="merge" target="/manifest/application">
|
||||||
|
<application android:usesCleartextTraffic="true" />
|
||||||
|
</edit-config>
|
||||||
</platform>
|
</platform>
|
||||||
<platform name="ios">
|
<platform name="ios">
|
||||||
<allow-intent href="itms:*" />
|
<allow-intent href="itms:*" />
|
||||||
<allow-intent href="itms-apps:*" />
|
<allow-intent href="itms-apps:*" />
|
||||||
</platform>
|
</platform>
|
||||||
</widget>
|
</widget>
|
@ -25,7 +25,7 @@ routes = [
|
|||||||
: char.firstName;
|
: char.firstName;
|
||||||
|
|
||||||
$$("#title-char").text(charFullName);
|
$$("#title-char").text(charFullName);
|
||||||
$$("#picture-char").attr("src", "/img/characters/" + char.firstName + ".png");
|
$$("#picture-char").attr("src", "img/characters/" + char.firstName + ".png");
|
||||||
actualCharId = charId;
|
actualCharId = charId;
|
||||||
createTableOfStats();
|
createTableOfStats();
|
||||||
displayTableOfGrowthRates();
|
displayTableOfGrowthRates();
|
||||||
|
Reference in New Issue
Block a user