can not render Application Card on Android app

dddddd 0 Reputation points
2023-11-03T07:29:40.32+00:00

can not render Application card on Android app,

Target Platforms:

Android 12

SDK Version:

1.4

Application Name:

Microsoft Teams

Problem Description

can not render Application Card on Android app

Screenshots:279857378-faf1b67e-b729-4dd7-8375-af1a8857a437

279857367-12a93dce-ddd6-4af2-8f2a-1fd5a83a0af5

code sample:

{   $schema: 'http://adaptivecards.io/schemas/adaptive-card.json',   version: '1.4',   type: 'AdaptiveCard',   body: [     {       type: "TextBlock",       size: "Medium",       weight: "Bolder",       text: "👏 Welcome to ONES.com for Teams! Let’s increase efficiency and productivity!",       wrap: true,     },     {       type: "Container",       items: [         {           type: "TextBlock",           text: "🔔 Issue notifications",           wrap: true,           weight: "Bolder",         },         {           type: "TextBlock",           wrap: true,           text: 'Send "notify" to  App, to subscribe and receive notifications you care about.',         },       ],     },     {       type: "Container",       items: [         {           type: "TextBlock",           text: "📜 Help guide",           wrap: true,           weight: "Bolder",         },         {           type: "TextBlock",           wrap: true,           text: 'Get instructions by sending "help" to App..',         },       ],       separator: true,       spacing: "Medium",     },     {       type: "Container",       items: [         {           type: "TextBlock",           text: "👩 Contact us",           wrap: true,           weight: "Bolder",         },         {           type: "TextBlock",           wrap: true,           text: "Questions, bug reports, feedbacks — we’re here for it all, please [contact us]",         },       ],       separator: true,       spacing: "Medium",     },     {       type: "Container",       items: [         {           type: "TextBlock",           text: "👤 Log out your account",           wrap: true,           weight: "Bolder",         },         {           type: "TextBlock",           wrap: true,           text: 'Send "logout" to App.',         },       ],       spacing: "Medium",       separator: true,     },   ], }
Microsoft Teams | Microsoft Teams for business | Other
0 comments No comments
{count} votes

6 answers

Sort by: Most helpful
  1. Anonymous
    2023-11-03T07:46:28.7233333+00:00

    Hi @dddddd

    Based on our research, the Teams mobile app does not display the entire adaptive card if the Action.OpenURL does not contain a valid link or has null values in the data.

    If there are null values in the data, it does not produce json "text" property, replacing null values with empty string works.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.



  2. dddddd 0 Reputation points
    2023-11-03T09:41:56.9833333+00:00

    But there is no Action.OpenURL in my card, and there is no empty string, What makes me wonder is it works on ios app


  3. dddddd 0 Reputation points
    2023-11-06T08:40:07.44+00:00

    i found the resons:

    when i download teams app in google play, it works fine..

    but when i download teams app in xiaomi appstore or huawei appstore, it can not works.

    so... it seems the teams app version in China region is not the latest,

    and i found the changlog about teams app, i can not found the app version "1416/1.0.0.2021042002" which is available on Xiaomi App Store


  4. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  5. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.