-
Notifications
You must be signed in to change notification settings - Fork 291
with cordova-android 8.1.0 it is not working #146
Comments
It is reason why icon is not working. |
I am also facing the same problem. Is there any solution ? |
The reason is the icons are now named ic_launcher.png. You can fork repo and rename, or make pull request. I have the same problem and I forked repo and changed the name and it works. |
@przem93 I tried that and it still doesnt work for me. Neither cordova-icon nor cordova-splash after upgrade from Android 7.1.4 to 8.1. I have tried editing the cordova-icon index.js to produce images with the name ic_launcher.png: I have also tried changing the path of the icons to be created at Any suggestions ? |
Its my code
Check if icons are generated and are in location. It is stupid question, but are you sure that modified code is invoked ? |
Thanks for your quick response @przem93 !! So for me the icons were getting generated correctly with the changed name and everything but I was still seeing the native cordova icon in the end. The problem appears to be that the android platform 8.1 adds another folder called mipmap-hdpi-v26 containing the ic_launcher_foreground which the plugin does not overwrite. Deleting those folders seems to fix the problem for me and the app gets the correct icon. Now i need to figure out what the splash screen problem is with cordova-splash. |
Here is what I did to fix this.
I changed android platform in
I would create a PR but I don't see the point as this project is not maintained anymore... |
this solves the icon issues. but the main app icon is not changing. i.e. the icon in the home screen... ? |
Maybe it is just not updating? I have seen cases where you needed to remove and reinstall the app to get the new icon. |
it sounds strange.. but i need to reboot the android to see the changes.. .. Any ways thanks for the change in the change code.. |
I worked a long time with cordova-icon. since 8.1.0 it is not working anymore.
I get this message:
but if I run the app, there is no icon.
I think it has to do with the fact that the icons are now named ic_launcher.png?
The text was updated successfully, but these errors were encountered: