- change app icon
- open installed app from external link
- security config to send xhhtp request in android < 9
<platform name="android">
<config-file parent="./application/activity/[@android:name='MainActivity']" target="AndroidManifest.xml">
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:host="example.com" android:scheme="http" />
<data android:host="m.example.com" android:scheme="http" />
</intent-filter>
</config-file>
</platform>
<?xml version='1.0' encoding='utf-8'?>
<widget id="io.cordova.hellocordova" 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">
<platform name="android">
<edit-config xmlns:android="http://schemas.android.com/apk/res/android" file="app/src/main/AndroidManifest.xml" mode="merge" target="/manifest/application">
<application android:networkSecurityConfig="@xml/network_security_config" />
</edit-config>
<resource-file src="network_security_config.xml" target="app/src/main/res/xml/network_security_config.xml" />
</platform>
<?xml version="1.0" encoding="utf-8"?>
<network-security-config>
<base-config cleartextTrafficPermitted="true"/>
</network-security-config>
or set bellow code in your index.html file
<meta http-equiv="Content-Security-Policy" content="default-src * 'unsafe-inline' 'unsafe-eval'"/>
Easily generate image assets for PhoneGap/Cordova projects from this link
<platform name="android">
<allow-intent href="market:*" />
<preference name="android-minSdkVersion" value="21"/>
<icon src="assets/icon/mdpi.png" density="mdpi" />
<icon src="assets/icon/hdpi.png" density="hdpi" />
<icon src="assets/icon/xhdpi.png" density="xhdpi" />
<icon src="assets/icon/xxhdpi.png" density="xxhdpi" />
<icon src="assets/icon/xxxhdpi.png" density="xxxhdpi" />
</platform>
Easily generate image assets for PhoneGap/Cordova projects from this link
first add plugin: cordova plugin add cordova-plugin-splashscreen
<platform name="android">
<splash src="assets/splash/splash-port-hdpi.png" density="port-hdpi"/>
<splash src="assets/splash/splash-port-ldpi.png" density="port-ldpi"/>
<splash src="assets/splash/splash-port-mdpi.png" density="port-mdpi"/>
<splash src="assets/splash/splash-port-xhdpi.png" density="port-xhdpi"/>
<splash src="assets/splash/splash-port-xxhdpi.png" density="port-xxhdpi"/>
<splash src="assets/splash/splash-port-xxxhdpi.png" density="port-xxxhdpi"/>
</platform>