Reputation: 41
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/
Upvotes: 2
Views: 1774
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
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
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