Forum Discussion
vfan140
Dec 22, 2023Copper Contributor
Adaptive card not Displaying on teams android mobile
my adaptive card doesn't display on android mobile but work on desktop/web/ios.
here is my json:
{
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"type": "AdaptiveCard",
"version": "1.3",
"body": [
{
"type": "TextBlock",
"text": "hi~",
"wrap": true,
"size": "medium"
}
]
}
and the code i use adaptive-card:
import { AdaptiveCards } from '@microsoft/adaptivecards-tools'
const json = {
// ....
}
const adaptiveCard = AdaptiveCards.declare(json).render()
// member -> `BotBuilderCloudAdapter.Member`
member.sendAdaptiveCard(adaptiveCard)
teams app versions:
1416/1.0.0.2023134402/0802
7 Replies
- SaiPratap-MSFTFormer Employee
vfan140 - We have tested this in teams version 1416/1.0.0.20232123504/1120 in Android version 13 mobile, it is working fine
Could you please refer this Adaptive cards Sample in Node js https://github.com/OfficeDev/Microsoft-Teams-Samples/tree/main/samples/bot-all-cards/nodejs- vfan140Copper Contributor
SaiPratap-MSFT Refer this sample in my code, still not work on android...here is my code, can you give some suggestion for me??
My Android version is 12.
More code in codesandbox : https://codesandbox.io/p/sandbox/teams-app-y5pzvk
- ChetanSharma-msft
Microsoft
Hello vfan140 - We have tried to setup your code but getting lots of errors and .env file is also missing.
Could you please share the complete code or please deploy your code so that we can quickly test it.
- ChetanSharma-msft
Microsoft
Hello vfan140 - Thanks for raising your query.
We will look into it and let you know the updates.