-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Update docs in regards to using adaptive icons with background colors #1699
Comments
We have the same problem. This does not work at all. Here's my SO thread about it with more info |
Here's my work around : Since I use the same color as the splashscreen, I bypassed the step to add the resource file and piggy back onto the splash screen color.
|
A proper approach would be to add a variable like
Which would create the variable in colors.xml such as
Then we should use (meaning it would auto add
|
Bug Report
As pointed more than a year ago, docs are telling us to create an inconsistent project state when trying to add a background color to adaptive icons.
At the time, Erisu agreed it was a problem and would update docs, but it haven't happened so far.
Problem
This is actually quite bad, since you cannot understand what's going on from console output, not even with
--verbose
. Since that's all "hidden magic" from Cordova, it should be clearer when something internal can't be found because the related file was probably overridden by you or a plugin.I'm not sure if
cordova prepare
solves it once you rename the file, but I solved it by readding the platform. This is not a good experience.What is expected to happen?
We should be able to follow docs and it should work.
What does actually happen?
This page tells us to override a file that Cordova creates internally, and then it breaks the build horribly in a very early step.
Information
Command or Code
Version information
cordova-android 12.0.1
cordova cli 12.0.0 (cordova-lib 12.0.1)
Checklist
The text was updated successfully, but these errors were encountered: