At this point I am just trying to get to the working app I had with Phonegap.
For icons and splashscreens, I do not want to use cordova-res as it changes the aspect ratios and creates too many unnecessary images. I have no resources.json, splashTemplate.png or iconTemplate.png in my zip. Not the foreground and background android images either.
However, despite my config.xml, the compilation generates screen.9.png files that seem non-9-patch versions of my 9-patch PNGs (they have 2 less pixels high and wide). On the phone the result is terrible in portrait mnode, the image in the splash screen is zoomed in and clipped by the screen size. Looking at old APKs generated by Phonegap, the same files were generated, but worked fine.
The relevant lines from my config,xml
(I’ve used the same equivalent lines in Phonegap for years)
<plugin name="cordova-plugin-splashscreen" />
<platform name="android">
<splash src="resources/android/splash/screen-ldpi.9.png" density="ldpi" />
<splash src="resources/android/splash/screen-mdpi.9.png" density="mdpi" />
<splash src="resources/android/splash/screen-hdpi.9.png" density="hdpi" />
<splash src="resources/android/splash/screen-xhdpi.9.png" gdensity="xhdpi" />
<splash src="resources/android/splash/screen-xxhdpi.9.png" density="xxhdpi" />
<splash src="resources/android/splash/screen-xxhdpi.9.png" density="xxxhdpi" />
<icon src="resources/android/icon/icon-36-ldpi.png" density="ldpi" />
<icon src="resources/android/icon/icon-48-mdpi.png" density="mdpi" />
<icon src="resources/android/icon/icon-72-hdpi.png" density="hdpi" />
<icon src="resources/android/icon/icon-96-xhdpi.png" density="xhdpi" />
<icon src="resources/android/icon/icon-144-xxhdpi.png" density="xxhdpi" />
<icon src="resources/android/icon/icon-192-xxxhdpi.png" density="xxxhdpi" />
</platform>