-
Notifications
You must be signed in to change notification settings - Fork 651
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Icons and splash screens generated from ionic resources
ignored on Android
#1608
Comments
Note that my current workaround to get it built with the icons is to simply move them into the correct position. I do that like so:
However I suspect if I generate a new set of icons or prepare the Android platform again, these steps would be reversed. |
I'm also having this exact problem, seems the res map isn't created in the correct location |
Yes, having the same issue just after updating Ionic and Cordova NPM libraries. Using Ionic 1.3.2 app
Update: Hmm, mine appears to be a bigger issue than that, none of my Plugins (using the Ionic Native library) are no longer loading/found (all is fine for iOS), installed/reinstalled all plugins/platforms etc, strange because I have managed to upgrade fine in the past.. Also to note: will investigate further... ** Lastest Update ** So after the various CLI updates. It appears if I use an explicit older android cli platform: I have noticed the 'res' folder was appearing (cordova 6) (with the correct iocns) in the root folder of my inital app files, NOT the platform generated folder So, this should be considered a Cordova issue? |
Hi folks, |
this issue started as soon i upgraded cordova to latest (6.4.0). |
The same problem here with ionic 2 RC2. |
@workfluo thanks man, you solution solved this issue for me. was having this issue as well, my ionic info: Cordova CLI: 6.3.1 |
I had the same issue with the following system information:
and my cordova-android version is 6.0.0 I tried the solutions above but none of them worked for me. Finally I managed to make it work by downgrading Cordova CLI from 6.4.0 to 6.3.1 by running the following command:
and removing & adding android platform then re-building for android:
Note: In this solution, instead of |
If i try: ionic build android i get this: |
I will try this from ghenry22 in ionic-team/ionic-framework#9060: |
I have this: |
I would highly recommend to open the .pkg file with an unzip tool in order to check IF in "res" folder you have any image for splash screens AND their name. |
GET IT. GOTTCHA YOU BUGGY BUG! |
@camexapps , your solution to do |
@EmreErdogan your solution solved my problem. Downgrading cordova solves all problems! For the people reading this, just uninstall the current cordova before installing the older version.
|
Simply because there is no single answer. |
+1 |
I was able to fix this issue by:
|
I found my problem. I created a new ionic test project and the splashscreen is working. I was using Thus, I can tell this configuration is working:
All you have to do is:
A valid Android splashcreen config line should look like: Hope this helps! :-) |
@florentsuc What about the icons? Do they work properly for you? I can't manage to fix it and always get the default cordova icon. |
@vintage Yes they do. I spent so much time to find my mistake. I can only advice you to create a new ionic blank project to find your problem. |
@florentsuc I've been reading your comment multiple times and just realized I'm using |
Thanks @vintage updating to android @ 6.1 solved the issue |
Thanks @florentsuc, your tips helped me a lot. Add |
@florentsuc Thanks! |
npm ERR! fetch failed http://registry.npmjs.org/cordova-android/-/cordova-android-6.1.0.tgz |
Same issue here
|
Yup! Upgrading to android@6.1 fixed it for me. Thanks @vintage ! |
Upgrade to 6.1 worked. Many thanks to @florentsuc and @felippepuhle! |
Gracias @florentsuc y @felippepuhle, the workarround worked for me! |
@florentsuc and @felippepuhle |
@florentsuc - Thanks for the instructions. I can now see my custom icon on my Android device. Hope this issue gets a good resolution: an app distributed with a default cordova icon gives a bad impression, even if distributed only for testing purposes. |
Thanks @florentsuc !! |
@florentsuc thanks! It worked for the icon but I still have the splash screen blank issue. My
My info
Platforms
|
@herkulano
then change it back to:
This how I solved the blank splash. |
@almothafar thanks. you forgot to post the code. |
@herkulano the code was there but not wrapped with ```. |
@almothafar thanks. It was working already with @florentsuc post. My splash problem was the previous value of: |
Thanks to @florentsuc to get past that frustrating issue! Now, in my case, my app is saved on device with the correct icon. And also getting the splash screen shown with correct image. However, after the splash display, the screen goes all white. Nothing happens! :( Any suggestions or pointers? Your help is highly appreciated! |
Thank you both! But why isn't the 6.1 engine set as default if it contains bugs like this? |
Only changing the android version, everything works fine. |
@florentsuc What Node Version you have and SO? |
@herkulano Sorry, i have a problem with tha Node 6.9.X, say
|
I too have the issue.
because I was on android@6.0.0 and it seems it is the cause of the problem. But then I go through a lot of errors on compilation, plugins errors like:
I tried Can you help ? @EmreErdogan solution doesn't seem to work. |
Any support for cordova 6.4 is coming ? Or should I use @workfluo strategy ? |
for cordova 6.4 this is working one |
If you're splashscreens and icons are not getting used/copied, run
Android 6.0 (which cordova currently has pinned as the default version) had a bug with resources not being used. |
@mhartington who's better than you? |
@mhartington Upgrading to latest android worked for me. |
I got
|
Thanks a lot @florentsuc. I updated android platform to 6.1.3 but seems like only 6.1.0 works well. |
Short description of the problem:
Even in a freshly generated project, icon and splash screens generated from
ionic resources
are being ignored in Android, where the default Cordova images are instead used. This problem does not exist on iOS.What behaviour are you expecting?
Icons and splash screens generated by
ionic resources
(which comes up with the Ionic logos if no other icon or splash screen is provided) to be used in the Android app.Steps to reproduce:
Other information: (e.g. stacktraces, related issues, suggestions how to fix, stackoverflow links, forum links, etc)
The
res
directory created in the root of the project (following theionic resources
command) contains the expected Ionic logo images (which are created by theionic resources
command as an example) in the many different sizes required by Android.The
platform/android/res
directory, however, contains all of the default Cordova images, which appear to be the ones actually being used.platform/res/android/xml/config.xml
perfectly matches the expectedconfig.xml
, so it is copying that across as expected, but not the generated images.Which Ionic Version? 1.7.14
Run
ionic info
from terminal/cmd prompt: (paste output below)The text was updated successfully, but these errors were encountered: