Kiran Bhadani
Kiran Bhadani

Reputation: 41

Microsoft Teams Bot Adaptive card not rendering in mobile app (android)

Microsoft Teams Bot - Adaptive card not displaying in android mobile app, it works fine in desktop app, json as below, also other card for list of records works, is that something to with empty text columns? Checked with 'adaptivecards.io' not issues reported.

JSON added here https://jsfiddle.net/yaorm2en/


enter image description here

Upvotes: 2

Views: 1774

Answers (3)

Denis Golubev
Denis Golubev

Reputation: 101

For my case that was an issue because of my json object does not have the version property.

For example, this one does not work:

{
  type: 'AdaptiveCard',
  body: [],
}

but this one works fine and everything displayed on mobile as expected:

{
  type: 'AdaptiveCard',
  version: "1.6",
  body: []
}

Upvotes: 0

Daniel
Daniel

Reputation: 21

I found the answer. If the Action.OpenURL does not contain a valid link, the Teams mobile app will not show the whole adaptive card, but the desktop app will.

Upvotes: 2

Kiran Bhadani
Kiran Bhadani

Reputation: 41

I am able to solve it, problem is null values in data, it does not produce json "text" property, replacing null values with empty string works

Upvotes: 0

Related Questions