AdaptiveCards icon indicating copy to clipboard operation
AdaptiveCards copied to clipboard

[Rendering] Action.Submit buttons are not working on Android

Open maindi opened this issue 2 years ago • 0 comments

Target Platforms

iOS, Android, UWP

SDK Version

Latest

Application Name

Microsoft Teams

Problem Description

An adaptive card with Action.Submit buttons and with the type of task/submit are not working properly on the Android Teams client. Clicking a task/submit button is not even triggering an HTTP post event to the app. (ngrok local environment). Clicking a task/fetch button works correctly.

All card buttons work correctly on iOS & Web browser & Teams Desktop client.

Screenshots

screenshot_20220811-120529

Card JSON

{
    type: "AdaptiveCard",
    $schema: "http://adaptivecards.io/schemas/adaptive-card.json",
    version: "1.4",
    body: [
      {
        type: "TextBlock",
        size: "Large",
        weight: "Bolder",
        text: "Here's what you can do with APP",
        separator: true,
      },
      {
        type: "ActionSet",
        actions: [
          {
            type: "Action.Submit",
            title: "Give Recognition",
            data: {
              msteams: {
                type: "task/fetch",
              },
              id: "give_recognition_apphome",
            },
          },
          {
            type: "Action.Submit",
            title: "Plant Trees",
            data: {
              msteams: {
                type: "task/submit",
              },
              id: "plant_trees",
            },
          },
          {
            type: "Action.Submit",
            title: "Statistics",
            data: {
              msteams: {
                type: "task/submit",
              },
              id: "view_statistics",
            },
          },
          {
            type: "Action.OpenUrl",
            title: "Help",
            url: "https://anurl.com,
          },
          {
            type: "Action.OpenUrl",
            title: "Dashboard ",
            url: process.env.WEBAPP_URL
          },
        ],
      },
      {
        type: "TextBlock",
        wrap: true,
        text:
          "🌱 You have " +
          seedsLeft +
          " seeds left to give 🌳 You have " +
          unplantedSeeds +
          " unplanted seeds",
        size: "Small",
        weight: "Default",
        isSubtle: true,
      },
    ],
  }

Sample Code Language

No response

Sample Code

No response

maindi avatar Aug 11 '22 09:08 maindi