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'?>
|
||||
<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>
|
||||
<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>
|
||||
<author email="dev@cordova.apache.org" href="http://cordova.io">
|
||||
Apache Cordova Team
|
||||
@ -17,7 +17,9 @@
|
||||
<allow-intent href="mailto:*" />
|
||||
<allow-intent href="geo:*" />
|
||||
<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 name="ios">
|
||||
<allow-intent href="itms:*" />
|
||||
|
@ -25,7 +25,7 @@ routes = [
|
||||
: char.firstName;
|
||||
|
||||
$$("#title-char").text(charFullName);
|
||||
$$("#picture-char").attr("src", "/img/characters/" + char.firstName + ".png");
|
||||
$$("#picture-char").attr("src", "img/characters/" + char.firstName + ".png");
|
||||
actualCharId = charId;
|
||||
createTableOfStats();
|
||||
displayTableOfGrowthRates();
|
||||
|
Reference in New Issue
Block a user