Forum Discussion

polbac's avatar
polbac
Copper Contributor
Feb 15, 2022

AdaptiveCard is not rendered on Android

Hi! I having this message AdaptiveCard message but on some versions of android the AdaptiveCard is not rendered (empty block). I am using 1.4 version of AdaptiveCard. Is there any limitations of Android SO version? What I can do?

 

 

Thank you!

 

 

[
  {
    "type": "message",
    "inputHint": "acceptingInput",
    "attachments": [
      {
        "content": {
          "body": [
            {
              "text": "ΒΏLorem ipsum?",
              "type": "TextBlock",
              "wrap": true,
              "weight": "Bolder"
            },
            {
              "text": "Pregunta 1",
              "type": "TextBlock",
              "wrap": true,
              "isSubtle": true
            }
          ],
          "type": "AdaptiveCard",
          "actions": [
            {
              "data": {
                "org": "test",
                "type": "answer",
                "answer": "1",
                "chatId": "2505",
                "locale": "es",
                "msteams": {
                  "text": "😒",
                  "type": "messageBack",
                  "displayText": "😒"
                },
                "options": [
                  { "text": "😒", "value": "1" },
                  { "text": "πŸ™", "value": "2" },
                  { "text": "πŸ™‚", "value": "3" },
                  { "text": "πŸ˜„", "value": "4" },
                  { "text": "😍", "value": "5" }
                ],
                "questionId": "1",
                "questionText": "Lorem ipsum",
                "questionContextText": "Pregunta 1"
              },
              "type": "Action.Submit",
              "title": "😒",
              "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
              "version": "1.4"
            }
          ]
        },
        "contentType": "application/vnd.microsoft.card.adaptive"
      }
    ],
    "attachmentLayout": "list"
  }
]

 

 

  • polbac -We are unable to repro the issue. it's working fine for us.
    Teams Version:-1416/1.0.0

    Android Version:-8.1.0

    Could you just check it once or share the Repro steps?

     

    • alanszp's avatar
      alanszp
      Copper Contributor

      Sayali-MSFT Thanks for the response!

      I'm part of polbac 's team.

       

      The Adaptative Card is working. We have this chatbot deployed and working on teams across many platforms (Android, IOS & Web).

       

      The problem that polbac stated, is that it seems that in certain OS or APP Version this adaptative card didn't showed, and only appeared a blank message.

       

      We need to understand if there is a retro-compatibility issue and when this message became available, so we can do 2 things:

      - Ask our clients to have installed Teams version X or up

      - Change the way the message is sent so it's 100% retrocompatible with any platform/version.

       

      Can you help us with that?

       

      Thanks

Resources