config.xml

This is a file where you can configure various settings for all the added platforms.


<?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">    <name>HelloCordova</name>    <description>        A sample Apache Cordova application that responds to the deviceready event.    </description><author email="dev@cordova.apache.org" 
             href="http://cordova.io">        Apache Cordova Team    </author>    <content src="index.html" />    <plugin name="cordova-plugin-whitelist" spec="1" />    <access origin="*" />    <allow-intent href="http://*/*" />    <allow-intent href="https://*/*" />    <allow-intent href="tel:*" />    <allow-intent href="sms:*" />    <allow-intent href="mailto:*" />    <allow-intent href="geo:*" />    <platform name="android">        <allow-intent href="market:*" />    </platform>    <platform name="ios">        <allow-intent href="itms:*" />        <allow-intent href="itms-apps:*" />    </platform></widget>

If you are building for Android, consider adding the following few lines into AndroidManifest.xml automatically by inserting the following into the
     <platform name="android">...</platform> section of config.xml.android:configChanges=
                            "keyboardHidden|orientation| screenSize"tells Android not to restart the running Activity when the keyboard is pulled out, or when the device is rotated.android:windowSoftInputMode="adjustPan" tells Android to move the page content when the virtual keyboard is brought out. If the value is changed to “AdjustResize", the page will be resized to make room for the virtual keyboard. “AdjustNothing" will possibly result in the virtual keyboard blocking the input.The permission FOREGROUND_SERVICE allows the app to continue running even if the user is not interacting with it.The permission CAMERA allows the app to take photos and videos.

<edit-config file="AndroidManifest.xml" 
                  mode="merge" 
                  target="/manifest/application/activity">
  <activity android:configChanges=
                            "keyboardHidden|orientation|screenSize" 
                android:windowSoftInputMode="adjustPan" /></edit-config><edit-config file="AndroidManifest.xml" 
                   mode="add" target="/manifest" 
                   xmlns:android=
                  "http://schemas.android.com/apk/res/android">
   <uses-permission android:name=
                 "android.permission.FOREGROUND_SERVICE" />   <uses-permission android:name=
                                    "android.permission.CAMERA" /></edit-config>