Ionic resources not working

Hello,

I am having a problem with my ionic splashscreen.
When I create a new project (for example if I use the start template of ionic tabs) and add the ionic platform for android and than add the icon.png and splash.png (with the required 1024X1024 and 2208x2208) as documented I can not get my ionic resources to work. From the root project directory I type in ionic resources and the only thing that is returned to me by the cli is;
Ionic icon and splash screen resources generator
uploading icon.png …
uploading splash.png …

That’s it and none of the splash or icons are created and/or deployed on the locations.
My config points to the right locations.

I do not understand what I am missing or doing wrong.

Note: I already entered the cli:
ionic plugin add cordova-plugin-splashscreen@3.0.0
And it is a V2 project

Can anyone tell me what I am doint wrong?

1 Like

Hi there! Could you provide your ionic info?

# from the project root

ionic info

Hi!
thanks for your reply.
Ionic info gives me the following:
Your system information:
Cordova CLI: 5.3.3
Gulp version:
CLI version 3.9.0
Gulp local:
Ionic Framework Version: 1.0.0-beta.8
Ionic CLI Version: 2.0.0-beta.24
Ionic App Lib Version: 2.0.0-beta.14
OS: Windows 8.1
Node Version: v4.4.0

Note: My icons are updated correct (except: drawable-ldpi-icon.png)
However, my splash images are not.

Thanks in advance,
Kind regards,

Sagar

my splash.png was not working.
When I changed the extension to psd it worked.

The forum that helped me out with this was:

My ionic info is

Your system information:

Cordova CLI: 6.1.1
Gulp version: CLI version 3.9.1
Gulp local: Local version 3.9.1
Ionic Version: 1.3.0
Ionic CLI Version: 1.7.14
Ionic App Lib Version: 0.7.0
ios-deploy version: 1.8.6
ios-sim version: 5.0.8
OS: Mac OS X El Capitan
Node Version: v4.4.2
Xcode version: Xcode 7.0 Build version 7A220

i am also having the same issue. The resources are uploading but not generating the new images. I have few other projects where it was working fine earlier.

Hi!

I had similar problems. It has something to do with the way the .png is saved.

Try passing the file through https://tinypng.com/. It has worked for me several times.

1 Like

We were trying to update ionic app’s splash screen using below configuration system but failed :
Cordova CLI: 6.4.0
Ionic CLI Version: 2.1.7
Ionic App Lib Version: 2.1.4
ios-deploy version: 1.9.0
ios-sim version: 5.0.11
OS: macOS Sierra
Node Version: v6.9.1
Xcode version: Xcode 8.1 Build version 8B62
We were able to generate splash screen and fix the issue in below configuration system:
Cordova CLI: 6.3.1
Gulp version: CLI version 3.9.1
Gulp local: Local version 3.9.1
Ionic Framework Version: 1.2.4
Ionic CLI Version: 2.1.0
Ionic App Lib Version: 2.1.0-beta.1
ios-deploy version: Not installed
ios-sim version: Not installed
OS: Mac OS X El Capitan
Node Version: v6.6.0
Xcode version: Xcode 8.1 Build version 8B62

Worked for me. thanks pal

I starte to face this issue in an project today. Everything was working fine. Don’t understand what could be happening.

My ionic info

Cordova CLI: 6.3.1
Gulp version: CLI version 3.9.1
Gulp local: Local version 3.9.1
Ionic Framework Version: 2.0.0-rc.3
Ionic CLI Version: 2.1.4
Ionic App Lib Version: 2.1.2
Ionic App Scripts Version: 0.0.46
OS: Distributor ID: Ubuntu Description: Ubuntu 16.04.1 LTS
Node Version: v6.4.0

I have tried to upgrade to cordova@6.4.0, same issue.
Any clue?

Resources in resources/platform folder are working properly, config.xml is updating but in platforms/android/res, the original files (.png) com cordova are there, not the ones ionic resources has generated.

I have also same issue.

I also manually generated all png files under platforms/android/res but still it’s shows default cordova icon and splash image after build app

i have the same issue here, icon and splash screen resources are generated to the resource and res folder with "ionic resources"
but when i try to “ionic run android” it gives default cordova icon and splash screen always

I am using blank --v2 project

Cordova CLI: 6.4.0
Ionic Framework Version: 2.0.0-rc.4
Ionic CLI Version: 2.1.17
Ionic App Lib Version: 2.1.7
Ionic App Scripts Version: 0.0.47
ios-deploy version: Not installed
ios-sim version: Not installed
OS: Windows 10
Node Version: v6.9.1
Xcode version: Not installed

The solution that worked for me was:

ionic platform rm android
ionic platform add android@latest

optionally trying ionic resources afterwards

2 Likes

Thanx, that worked like a charm!!

A post was split to a new topic: Unable to execute ‘ionic cordova resources’ command