Reputation: 16619
I'm using the Ionic 2 resource generator to generate the icon and splash screen for my mobile app. I have two images in resources folder; icon.png
and splash.png
.
I'm using the following commands to generate the resources:
ionic resources --icon
ionic resources --splash
I can see it generates icons for both iOS and Android.
And it's working for iOS without a problem. However I cannot see the icon or splash screen on Android devices. What could I be missing here?
My ionic version is CLI v2.1.4
.
Upvotes: 2
Views: 750
Reputation: 858
There was a recent new version of Ionic CLI that targets this problem. Update with:
npm install -g ionic@latest
Make sure your image is on the following format:
icon.png: 1024x1024
plash.png: 2208x2208
Finally you can just run
ionic resources
No need for the flags.
Upvotes: 0