I declared the permission in config.xml but the AndroidManifest.xml is empty after phonegap build compiling. It is not be listed in the compiling log. How should I modify my config.xml?
The codes of my config.xml about permission declaring:
<platform name="android">
<preference name="android-minSdkVersion" value="19"/>
<preference name="android-targetSdkVersion" value="28" />
<config-file parent="/manifest" target="AndroidManifest.xml" xmlns:android="http://schemas.android.com/apk/res/android">
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
<uses-permission android:name="android.permission.INTERNET" />
</config-file>
<edit-config file="AndroidManifest.xml" mode="merge" target="/manifest/application" xmlns:android="http://schemas.android.com/apk/res/android">
<application android:usesCleartextTraffic="true"
android:networkSecurityConfig="xml/network_security_config.xml" />
<uses-library android:name="org.apache.http.legacy" android:required="false"/>
</edit-config>
</platform>