-
Notifications
You must be signed in to change notification settings - Fork 654
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
ionic resources does NOT update old icon #420
Comments
@cesarvega Before the resources server knows to use the images cache or not, it does a checksum on the source image. If the checksum of the source image is the same then it'll pull the image from the cache, if not, I'll it'll upload a new image again. Are you replacing the source image each time? |
@cesarvega - I'm trying this right now with latest (1.4.0). If I change my icon/splashscreen colors and run the resources command, it recreates the images. If I try to use the old ones, it relies on caching. What is your use case here? Are you trying to fetch those resources for another machine by re-running the resources command? |
Nope it's the same machine. I update (change colors, bevel, gradients) the icon with GIMP, run the resources tool and see that it does not pull from cache...GREAT. Afterwards when I search the platform/ and resources/ folders for the new icon.png, the old one is still there and the new one only gets added to the drawable folder. Anyways, I created a D script that would remove all stale icon and splash images from platform/ and resources/ and then it runs 'ionic resources'. Works great for now. Thanks for the help and feedback |
I just really want to know if there is a simple 'no-cache' option. I can deal with the images not updating. |
I think I understand the problem more. Are you meaning the images that are copied over to the platforms? Have you tried just running |
...it still still uses cached images... where are these cached images... I would like to remove them so this operates correctly |
My hack method: Search resources/android for .png's in file browser (im on Ubuntu) then manually delete all old icons/splash you see. THEN run ionic resources. Works great for now. WHY would you cache images on a development platform when they are most likely going to be updated VERY frequently. Other than that, I LOVE THIS FRAMEWORK. |
On Mac, "ionic resources --icon" generates the icons but these don't get picked up Xcode. As a result, the app still shows ionic icon and splash. It works for android (using Windows). After "ionic resources --icon" I get a bunch of png files in $appdir/resources/ios/icon/ that are current; I also see in $appdir/config.xml the icon tags for platform name="ios". How do I get them into Xcode and into my app? Thanks. |
Hi, on Windows you can clean system temp files with ccleaner tool and Sorry for my english, i am from Chile. |
Caching resources has been really an annoying feature since I've been using Ionic. Please please and please kindly remove this feature. |
Today, sth. really annoying happened: Because of the server-side cache / checksum-check, i always got the corrupted images when running Editing the source-file (to change its checksum) solved the problem… An option to ignore / delete the cache when running |
So annoying that's true, an option like |
Me,too,same problem |
Thks @ehlerskon And +1 for |
Same problem on Mac! Edit: I have solved by placing the "icon.png" in the resources folder. (I have placed it on the project's root folder). |
+1 for --clean-cache option |
I have solved running the command "ionic prepare ios" |
So, is there an option available to ignore cache? |
+1 - how was this overlooked? rm platform ios is not a solution. |
This is driving crazy.. we need some switch to remove cache. |
I'm having this same issue. I'm not sure what to do right now since I'm trying to release my app to the App Store and the dang icon is looking crazy! hahaha This is insane. |
Do you already tried the following command: ionic prepare ios
|
Hey guys, I recommend you try this, go 'C:\Users\AppData\Local\Temp ' this temp directory, and delete the cache files , then try again . |
Easy Trick : Create a new blank project, add your splash & icon.psd in /resources, execute sudo ionic resources then copy all news generated files in your current project ;) Quick & easy :) |
+1 for --clean-cache option |
Some how i manage to fix this by manually copy the generated file on im using
|
That works but it's a temporary workaround if you want to change the logo
you have to do it again
…On Tue, 6 Dec 2016 at 08:03, TwinLight ***@***.***> wrote:
Some how i manage to fix this by manually copy the generated file on res
folder, one by one to corresponding folder in platforms/android/res and
rename it
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#420 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ADp7b3mouTxdQaQOE35CTNYLQGLWhsFzks5rFQjAgaJpZM4EZxXt>
.
|
I've been having this issue all day, glad I'm not the only one experiencing it but since it's a year old, I doubt it'll be fixed anytime soon. |
Using ionic cli v2.1.13. still facing this issue. All I did was manually overwriting the files from res folder to platforms/android/res. no other solution worked for me, not even --clean-cache. any other cleaner solution ? |
@agupta-q4 for now I would write a custom gulp task that includes ionic build android and then copies and replaces the res folder to the proper place. Then instead of doing ionic build android, just run gulp build-android or something like that which fires off your task
|
I think that @tomysmile has found the way to fix it at the moment, this is a Cordova bug and not Ionic specific: Cordova released a fix for this one month ago for the Android platform but for some reason the cordova-cli is still using an old version of the Android platform that hasn't the problem fixed. So, the steps: $ ionic platform rm android You can see that by default cordova is adding as android platform version the 6.0.0 but the bug is fixed in the 6.1.0 (https://github.com/apache/cordova-android/blob/master/RELEASENOTES.md). Remove and add the platform can be avoided, I've added them for the people that had copy/pasted the icon and splashcreen to the platform folder, if you haven't done that the third step would be enough. |
@PabloFNK Thx
Now the icon is working correctly, but still do not see the splash screen, showing the white screen
|
@tore90turris are you following correctly all the steps (http://blog.ionic.io/automating-icons-and-splash-screens/)? Both, icon and splashscreen is working now to me. |
@PabloFNK
|
Is there a reason why there is a |
@rolandjitsu Apparently that |
+1 for ionic resources --clean-cache |
thanks for PabloFNK and Elijax |
I put my splash.png inside my |
@theunreal , have u try to run this on your terminal.
|
Finally the update command did the trick for me |
I had problem like this when I removed and added platform android. |
For me re installing cordova and ionic using npm install -g cordova and npm install -g ionic (on latest update released) - removing and readding platforms works. |
@ubaidseth finally that works!!!!!!!!! +1 |
+1 @bormansquirrel for |
Just delete files from your temp folder of windows, then run "ionic resources" command again. ionic will re-upload and generate new images. |
In my case it worked updating the platform
|
On osX.
|
As @rahianeja said since 17th January (Cordova released version 6.5.0) it is using the last version of cordova-android with the bug fixed, so, it's no longer needed the 'update' trick. Just update Cordova to the latest version and finally remove and add the platform. |
I have to copy all the directories from 'res' directory on project root to platform/android/res . Note: ionic platform rm android and ionic platform add android didn't solvevd it |
Still not working... i tried cleaning the $TMPDIR and removed the platform and add again. Mac OSX. |
I am actively working on our implementation of CLI v3. I did a ground up rewrite and can tell you that the caching issues are fixed. We will be releasing this in the coming weeks. Right now I am going to lock this issue. |
From @sclearion on May 13, 2015 20:29
ionic resources does not work as documented. It keeps loading from "cache". how can i remove this stupid caching as it is driving the graphic designers crazy. I have followed docs to a T and the only way I can update the icon is by removing android platform and re-installing.
Copied from original issue: ionic-team/ionic-framework#3723
The text was updated successfully, but these errors were encountered: