microsoft / microsoft/AdaptiveCards
[Rendering] Adaptive cards not rendering on certain iOS device
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 2k
- Forks
- 595
- Avg merge
- 1d 19h
- Merged PRs (30d)
- 1
Description
Target Platforms
iOS
Version : 17.4
SDK Version
1.4
<PackageReference Include="AdaptiveCards.Templating" Version="1.4.0" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
.NET Version
7.0
<TargetFramework>net7.0</TargetFramework>
Application Name
Outlook
Version : 4.2408.1
Problem Description
Hello,
Adaptive cards is not working on some iOS devices, sent via smtp.
Tried to update IOS as well as Outlook app.
Screenshots
Card JSON
{
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"type": "AdaptiveCard",
"originator": "${originator}",
"hideOriginalBody": true,
"version": "1.1",
"constrainWidth": false,
"body": #BODY#,
"actions":
[
{
"type": "Action.ShowCard",
"title": "Approve",
"card":
{
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"type": "AdaptiveCard",
"version": "1.1",
"body":
[
{
"type": "TextBlock",
"text": "Remarks:"
},
{
"type": "Input.Text",
"id": "reasonApprove",
"isMultiline": true,
"maxLength": 1000
}
],
"actions":
[
{
"type": "Action.Http",
"title": "Approve",
"method": "POST",
"url": "${apiClient}",
"headers":
[
{
"name": "Originator",
"value": "${originator}"
},
{
"name": "Status",
"value": "${approvalStatus}"
}
],
"body": "${replyApproveData}",
"bodyContentType": "application/json"
}
]
}
},
{
"type": "Action.ShowCard",
"title": "Reject",
"card":
{
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"type": "AdaptiveCard",
"version": "1.1",
"body":
[
{
"label": "Remarks:",
"type": "Input.Text",
"id": "reasonReject",
"isRequired": true,
"errorMessage": "Remarks are required for rejection.",
"isMultiline": true,
"maxLength": 1000
}
],
"actions":
[
{
"type": "Action.Http",
"title": "Reject",
"method": "POST",
"url": "${apiClient}",
"headers":
[
{
"name": "Originator",
"value": "${originator}"
},
{
"name": "Status",
"value": "4"
}
],
"body": "${replyRejectData}",
"bodyContentType": "application/json"
}
]
}
},
{
"type": "Action.ShowCard",
"title": "Return for Reprocessing",
"card":
{
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"type": "AdaptiveCard",
"version": "1.1",
"body":
[
{
"label": "Remarks:",
"type": "Input.Text",
"id": "reasonReprocess",
"isRequired": true,
"errorMessage": "Remarks are required for rejection.",
"isMultiline": true,
"maxLength": 1000
}
],
"actions":
[
{
"type": "Action.Http",
"title": "Return for Reprocessing",
"method": "POST",
"url": "${apiClient}",
"headers":
[
{
"name": "Originator",
"value": "${originator}"
},
{
"name": "Status",
"value": "${rejectionStatus}"
}
],
"body": "${replyReprocessData}",
"bodyContentType": "application/json"
}
]
}
}
]
}
Sample Code Language
No response
Sample Code
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No repository file, test, or entry point is identified. Start by reproducing the supplied Adaptive Card JSON in Outlook on iOS 17.4 with the listed SDK and package versions, comparing affected and working devices. Done means the card renders correctly on the affected iOS devices, including its ShowCard inputs and actions.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp, ios
- Domain
- mobile-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100