Just wondering if anyone been able to set adaptive icons on Cordova for Android Oreo? I\'m using the android 6.4.0 and my square icon shrinks to fit the circle. I just want
WARNING: Don't use this answer. This is now supported out of the box as of Cordova 9. See https://stackoverflow.com/a/55169307/2947592
Recent Android uses Adaptive Icons which has background and foreground images along with some xml files. This is what I did to set-up Adaptive Icons in my ionic application:
config.xml
, I set android-minSdkVersion
to version 26.
config.xml
, delete the icon density
tags and remove these lines:
Open Android Studio and create a new project or open the existing project.
Click on app -> res in the left sidebar. Right clicked on res -> New -> Image Assets
my-app/resources/android/adaptiveicon/
adaptiveicon
folder is linked here correctly, else it will throw "not found" errors during build.
Thats it. Now the App will have adaptive icons.