davidtoledo commented on issue #990:
URL: https://github.com/apache/cordova-ios/issues/990#issuecomment-708519903


   **That's it!**  
   
   **The solution is finally confirmed!**  
   
   As we can see, something changed in the way splash screens are handled in 
iOS 14:
   
   The entry  `<splash src="res/screen/ios/Default@2x~universal~anyany.jpg" />` 
 is no longer being used for iPhones. 
   
   Now we have to add this entry:  `<splash 
src="res/screen/ios/Default@2x~iphone~anyany.jpg" />` in order to get iPhone 
devices covered too.
   
   For people using only the **universal~anyany** entry (the only entry 
necessary in previous iOS versions): you just have to add the **iphone~anyany** 
entry to your **config.xml** file and you are good to go. 
   
   See example below:
   
   `<splash src="<path to your image>/Default@2x~universal~anyany.jpg" />`
   `<splash src="<path to your image>/Default@2x~iphone~anyany.jpg" />`
   
   Obviously you also have to create another image file called 
**Default@2x~iphone~anyany.jpg** (or png) with the resolution 1334 x 1334 
pixels and put it inside your splash screen images directory.
   
   Another thing that I noticed is that the splash screen fading effect is no 
longer working if the **FadeSplashScreenDuration** entry is not stated in the 
**config.xml file**.  
   
   So, you just have to add this line to your **config.xml** file and you will 
get the same default fading effect as in the previous iOS versions:
   
   `<preference name="FadeSplashScreenDuration" value="500"/>`
   
   Thank you very much for all collaborators in this thread. 
   
   I believe the final solution is finally found!


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to