microsoft / microsoft/AdaptiveCards

[Rendering] Adaptive cards not rendering on certain iOS device

Open
#8,854 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Area-Renderers Bug
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

image

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.