Hi, I developed plugin and it works fine on PC, but when I type command in mobile version (ios), just type /
application shows error message with text like “your svg is not valid” but in my plugin I don’t use any svg.
If I disable my plugin then commands work fine without any error
Can you help me?
What I should check in my plugin?
Solved.
Just command icon can not be png, just svg
func (p *Plugin) getCommand() (*model.Command, error) {
iconData, err := command.GetIconData(p.API, "assets/profile.png") // - can not be png
if err != nil {
return nil, errors.Wrap(err, "failed to get icon data")
}
return &model.Command{
Trigger: "trig",
AutoComplete: true,
...
AutocompleteIconData: iconData,
}, nil
}
Hi kasperdun and welcome to the Mattermost forums!
Glad to hear you managed to solve this issue and thanks for sharing the solution!