Question:如何删除应用程序徽标。
Solution:这个答案的先前解决方案,https://stackoverflow.com/a/57168008/1992004 https://stackoverflow.com/a/57168008/1992004,不再工作。
谷歌改变了格式"iconUrl"
to "icon"
,现在使用Base64
- 编码数据流,例如"icon":"iVBORw0KGgoAAAAN...
,而不是图像 URL,之前写为"iconUrl":"https://..."
.
我试过了"icon":""
以及许多 Base64 编码的值,例如"icon":"IA"
, "icon":"Lw"
,以及其他一些 - 没有成功。我收到类似的控制台消息
for "icon":""
{
"error": {
"code": 400,
"message": "The request failed because one of the field of the resource is invalid.",
"status": "INVALID_ARGUMENT",
"details": [
{
"@type": "type.googleapis.com/google.rpc.PreconditionFailure",
"violations": [
{
"type": "client_auth_config",
"subject": "?error_code=9&error_field_name=UpdateIconRequest.icon&error_field_value=%3CByteString@3eeee81e+size%3D0+contents%3D%22%22%3E"
}
]
}
]
}
}
or
{
"error": {
"code": 400,
"message": "Request contains an invalid argument.",
"status": "INVALID_ARGUMENT",
"details": [
{
"@type": "type.googleapis.com/google.identity.clientauthconfig.v1.ClientAuthConfigError",
"code": "ICON_STORAGE_FAILURE"
},
{
"@type": "type.googleapis.com/google.identity.clientauthconfig.v1.IconStorageError",
"reason": "INVALID_IMAGE"
}
]
}
}
or
{
"error": {
"code": 400,
"message": "Invalid value at 'icon' (TYPE_BYTES), Base64 decoding failed for \" \"",
"status": "INVALID_ARGUMENT",
"details": [
{
"@type": "type.googleapis.com/google.rpc.BadRequest",
"fieldViolations": [
{
"field": "icon",
"description": "Invalid value at 'icon' (TYPE_BYTES), Base64 decoding failed for \" \""
}
]
}
]
}
}
有人知道,应该在此处插入什么来从应用程序中删除徽标图像?