Avocone
November 11, 2016, 11:09am
1
Hello everyone, I’m having a problem changing the icon of the app.
The size of the images are right, I used the templates provided by the official blog, and they are correctly generated running “ionic resources”, I can see them in resources/android/icon and resources/android/splash.
When I test my app with “ionic run android” I still get the cordova logo as icon and a grey splash screen.
What am I doing wrong?
Any help would be appreciated
G.
nylex
November 11, 2016, 4:54pm
2
Delete the platforms and plugins folder and add platform again.
Avocone
November 22, 2016, 8:17am
3
Still not working.
Splashscreen.show() loads cordova’s splash
Avocone
November 22, 2016, 4:19pm
4
It’s a bug of the android platform, so:
ionic platform rm android
ionic platform add android@latest
ionic resources
my config.xml has these preferences for the splash:
<preference name="SplashMaintainAspectRatio" value="true"/>
<preference name="FadeSplashScreenDuration" value="3000"/>
<preference name="SplashScreen" value="screen"/>
<preference name="SplashScreenDelay" value="2000"/>
<preference name="SplashShowOnlyFirstTime" value="false"/>
<preference name="AutoHideSplashScreen" value="false" />
<preference name="ShowSplashScreenSpinner" value="false" />
Remember to use right sizes and don’t interlace your image!
1 Like
crashr
November 22, 2016, 5:21pm
5
I have done exactly as stated above.
The icon worked, but the splashcreen didn’t. It now shows a white screen instead of the Cordova splash screen.
I used the splash screen image packed within the side menu starter app from ionic v2 cli.
Avocone
December 16, 2016, 9:15am
7
I saw you solved it adding cordova splashscreen plugin (cordova plugin add cordova-plugin-splashscreen )
.
Good
Oh yes, sorry for not replying about ir here too.