Ionic-framework: Splash screen & icon are not generated at the right place

Created on 21 Nov 2016  路  7Comments  路  Source: ionic-team/ionic-framework

Ionic version: (check one with "x")
[ ] 1.x
[ x] 2.x

I'm submitting a ... (check one with "x")
[ x] bug report
[ ] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://forum.ionicframework.com/ or http://ionicworldwide.herokuapp.com/

Current behavior:

At the end of the build the icon are copied to "/res" (cf http://i.imgur.com/2uWixRM.png) instead of "/platforms/android/res" (cf : http://i.imgur.com/yAyRf8A.png)

And then the splash screen and icon are the default cordova one.

Expected behavior:

At the end of the build the icon are copied to "/platforms/android/res" (cf : http://i.imgur.com/yAyRf8A.png)

Steps to reproduce:

on version 2.1.12
1 - you generate new icon & splashscreen : ionic resources
2 - then build : ionic build android

Other information:

Ionic info: (run ionic info from a terminal/cmd prompt and paste output below):

Your system information:

 ordova CLI: 6.4.0
Ionic Framework Version: 2.0.0-rc.3
Ionic CLI Version: 2.1.12
Ionic App Lib Version: 2.1.7
Ionic App Scripts Version: 0.0.45
ios-deploy version: Not installed
ios-sim version: Not installed
OS: Windows 10
Node Version: v7.0.0
Xcode version: Not installed

Most helpful comment

@rodriguesgm try this

ionic platform rm android
ionic platform add android@latest
ionic resources
ionic build android

this worked for me

All 7 comments

having the same problem here, and also with images of push notifications

as a workaround you can try this https://github.com/driftyco/ionic-cli/issues/1166, it worked for me for icon and splah, but not for the push notifications

@rodriguesgm try this

ionic platform rm android
ionic platform add android@latest
ionic resources
ionic build android

this worked for me

@danielsawan it worked too. Not the push notification icon like the other solution, but the app icon and splash images were ok

Hello all! Thanks for using Ionic. So this was an issue with a cordova android release not long ago that has since been fixed by the cordova team. The fix here is to install the latest android cordova platform as @danielsawan showed above. Thanks!

@jgw96 the only problem is that even with the latest android, the icons for notifications are not working.
It seems the build is not copying the custom icon for notifications to the android res folder. If I manually create the folder drawable-hdpi, drawable-ldpi, etc... and add the icon inside of those folders, the notification icon appears correctly on the android bars.

This is the res structure generated on android platform folder
structure-android

This is my folder with the icon, splash icon and notifications icon
structure

And this is the wrong behavior i'm having with the icons for noticications
icon

So, I don't know if this is some issue of ionic buid, or from cordova android, or if it's not a bug and I should add a new configuration, because it was working before Ionic RC0.

any help?

@jgw96 OK, just saw here my mistake... it was a task on gulp that copied the files.. since Ionic stopped using gulp I need to add some other config to copy those files... thanks and sorry

Was this page helpful?
0 / 5 - 0 ratings

Related issues

daveshirman picture daveshirman  路  3Comments

brandyscarney picture brandyscarney  路  3Comments

SebastianGiro picture SebastianGiro  路  3Comments

alexbainbridge picture alexbainbridge  路  3Comments

BilelKrichen picture BilelKrichen  路  3Comments