2

I have a very standard code picked up from the GitHub examples like this:

HeroCard postAnalysisCard = new HeroCard()
{
    Buttons = new List<CardAction>
    {
        new CardAction(ActionTypes.PostBack, "Show me previous polls", value: "showprevious"),
        new CardAction(ActionTypes.PostBack, "Show me more statistics regarding this question", value: "ShowStats"),
        new CardAction(ActionTypes.OpenUrl, "Show me more about this topic", value: "http://bing.com/search?q=" + question.Substring(0, queryIndex)),
        new CardAction(ActionTypes.PostBack, "Help", value: "Help")
    }
};

But the OpenUrl action doesn't seem to work on all Skype clients. It works on Windows desktop but not on Android.

Is this a known issue? If yes, what is the workaround to have a consistent behavior?

Marc LaFleur
  • 31,987
  • 4
  • 37
  • 63
Vish
  • 31
  • 4

2 Answers2

1

The actual issue was unescaped special characters in the url. Escaping the string solves the issue.

Vish
  • 31
  • 4
0

The URL you provide in OpenUrl must use https://. Skype requires all external links to be secure.

Marc LaFleur
  • 31,987
  • 4
  • 37
  • 63
  • Actually this doesn't seem to work on the client version 7.40.0.x. And on mobile versions the button doesn't even show up. Ex: Skype for life 1.0.76.x – Vish Oct 13 '17 at 21:57