While I was looking for reasons, why my app using camera plugin still does not trigger the camera, I noticed that the config.xml file in properties folder of the project gets a current timestamp and even though does not contain the recent changes in code. E.g. I had deleted one line with a media plugin. Then I made a new build with VoltBuilder. The latest config.xml still does contain the deleted line. The log file shows that the deleted plugin is not included indeed. I did such experiments because former log files of failed builds mentioned warnings or errors within config.xml notwithstanding that I had corrected or deleted the complained about code before. Do I simply not understand what config.xml in properties folder represents?
I’m little confused about what you are describing here.
This is the config.xml for your latest build, from the VoltBuilder logs:
<?xml version='1.0' encoding='utf-8'?>
<widget android-versionCode="236" id="XXXX" version="8.3.1" xmlns="https://www.w3.org/ns/widgets" xmlns:android="http://schemas.android.com/apk/res/android" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<name>FotoPNG</name>
<description>Verwendet Kamera und erlaubt Speichern des Fotos</description>
<engine name="android" spec="12.0.0" />
<preference name="AndroidXEnabled" value="true" />
<preference name="android-installLocation" value="auto" />
<preference name="android-minSdkVersion" value="26" />
<preference name="android-targetSdkVersion" value="33" />
<preference name="SplashScreenDelay" value="2000" />
<preference name="AutoHideSplashScreen" value="true" />
<preference name="AndroidWindowSplashScreenAnimatedIcon" value="resources/splashTemplate.png" />
<preference name="AndroidWindowSplashScreenBackground" value="#000000" />
<platforms>
<platform name="android" />
</platforms>
<uses-permission android:name="android.permission.CAMERA" />
<uses-feature android:name="android.hardware.camera" />
<preference name="AndroidInsecureFileModeEnabled" value="true" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:minSdkVersion="33" android:name="android.permission.READ_MEDIA_IMAGES" />
<uses-permission android:name="android.permission.ACTION_CREATE_DOCUMENT" />
<uses-permission android:name="android.permission.ACTION_OPEN_DOCUMENT" />
<plugin name="cordova-plugin-device" source="npm" />
<plugin name="cordova-plugin-camera-flossy" source="npm" spec="6.0.1-dev">
<variable name="CAMERA_USAGE_DESCRIPTION" value="camera_app soll Aufnahme eines Fotos ermöglichen." />
<variable name="PHOTOLIBRARY_USAGE_DESCRIPTION" value="camera_app soll Zugang zur FotoLibrary ermöglichen." />
</plugin>
<plugin name="cordova-plugin-geolocation" source="npm">
<variable name="GEOLOCATION_USAGE_DESCRIPTION" value="camera_app verwendet Standort." />
</plugin>
<plugin name="cordova-plugin-statusbar" source="npm" />
<preference name="StatusBarOverlaysWebView" value="false" />
<preference name="StatusBarBackgroundColor" value="#000000" />
<preference name="StatusBarStyle" value="lightcontent" />
<allow-navigation href="*" />
<access origin="*" />
<allow-intent href="*" />
<platform name="android">
<icon density="ldpi" src="resources/android/icon/drawable-ldpi-icon.png" />
<icon density="mdpi" src="resources/android/icon/drawable-mdpi-icon.png" />
<icon density="hdpi" src="resources/android/icon/drawable-hdpi-icon.png" />
<icon density="xhdpi" src="resources/android/icon/drawable-xhdpi-icon.png" />
<icon density="xxhdpi" src="resources/android/icon/drawable-xxhdpi-icon.png" />
<icon density="xxxhdpi" src="resources/android/icon/drawable-xxxhdpi-icon.png" />
<splash density="land-ldpi" src="resources/android/splash/drawable-land-ldpi-screen.png" />
<splash density="land-mdpi" src="resources/android/splash/drawable-land-mdpi-screen.png" />
<splash density="land-hdpi" src="resources/android/splash/drawable-land-hdpi-screen.png" />
<splash density="land-xhdpi" src="resources/android/splash/drawable-land-xhdpi-screen.png" />
<splash density="land-xxhdpi" src="resources/android/splash/drawable-land-xxhdpi-screen.png" />
<splash density="land-xxxhdpi" src="resources/android/splash/drawable-land-xxxhdpi-screen.png" />
<splash density="port-ldpi" src="resources/android/splash/drawable-port-ldpi-screen.png" />
<splash density="port-mdpi" src="resources/android/splash/drawable-port-mdpi-screen.png" />
<splash density="port-hdpi" src="resources/android/splash/drawable-port-hdpi-screen.png" />
<splash density="port-xhdpi" src="resources/android/splash/drawable-port-xhdpi-screen.png" />
<splash density="port-xxhdpi" src="resources/android/splash/drawable-port-xxhdpi-screen.png" />
<splash density="port-xxxhdpi" src="resources/android/splash/drawable-port-xxxhdpi-screen.png" />
</platform>
</widget>
Sorry for trouble and confusion. Now I cannot find the difference between config.xml files any more. Maybe I made another build 4 minutes later.My confusion began with seeing that the log e.g. says:
The "<splash>" tags were detected and are no longer supported. Please migrate to the "preference" tag
I cannot see these splash tags.
There have been further warnings which - I thought - came again after having corrected or deleted the relevant code.
I think we should close this thread. Thank you. Sorry.
You’re not imagining things. The latest Android handles splash screens differently - in many case, they are generated from your icons now and are not needed.
If you ignore the warning, everything is fine.
Thanks a lot