Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Rendering] Adaptive cards not rendering on certain iOS device #8854

Open
Cjoshua2 opened this issue Mar 15, 2024 · 1 comment
Open

[Rendering] Adaptive cards not rendering on certain iOS device #8854

Cjoshua2 opened this issue Mar 15, 2024 · 1 comment

Comments

@Cjoshua2
Copy link

Cjoshua2 commented Mar 15, 2024

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

@Cjoshua2
Copy link
Author

@jwoo-msft

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant