Reputation: 531
I don't understand why my icon and splash screen aren't showing. They are properly referenced in the config.xml file but instead it's the cordova default images that show. Please help
EDIT: I just noticed that the icons and splash screens generated were not copied into their respective platforms. Why did this happen?
Upvotes: 8
Views: 13862
Reputation: 1694
This issue is caused by the res map not being created in the correct location. Running the following string of commands will remedy your issue.
mv platforms/android/res/{values,xml} res
rm -rf platforms/android/res
cp -r res platforms/android
ionic build android
Upvotes: 3
Reputation: 116
check out this link: https://github.com/driftyco/ionic-cli/issues/1608 and specifically florentsuc's comment
i solved it by running: ionic platform remove android ionic platform add [email protected]
Upvotes: 8
Reputation: 41
I had the same problem and this is what I did:
And finally my custom icon and splash screen appeared.
In other words you have to update the files manually in platforms/android and platform/ios.
Upvotes: 1
Reputation: 4436
To Modify splash screen you can go to resources
folder and modify the
icon.png
and splash.png
You can run ionic resources
command to generate resources for current installed platforms.
It is imperative that you keep icon and splash sizes and format the same or it will not work.
Also make sure you have your platforms installed before doing this:
ionic platform add android
ionic platform add iOS
Splashscreen:
Icon:
I also realized its best too keep these images small, as soon as they go higher than 35mb they take longer to generate
Upvotes: 5