MicrosoftDocs / msteams-docs

Source for the Microsoft Teams developer platform documentation.
https://aka.ms/teamsdev
Creative Commons Attribution 4.0 International
289 stars 513 forks source link

In iOS teams channel, compose extension result adaptive card not insert into compose box #11736

Open yungfu opened 1 month ago

yungfu commented 1 month ago

Steps to reproduce

I have an action based compose extension, when task module dialog submitted, an adaptive card result will be inserted in to compose box. Extension worked well as expected, an adaptive card will inserted into compose box in personal conversion, group conversation and teams post in web teams clients, desktop teams client, and android. But in iOS, this feature worked well in personal and group conversation, when submit compose extension in teams channel posts, no adaptive card inserted into compose box, and compose box closed automatically.

My adaptive card only contains one Textblock for test, defined as following:

{
    "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
    "type": "AdaptiveCard",
    "version": "1.4",
    "body": [
        {
            "type": "TextBlock",
            "text": "test ios",
            "size": "small",
            "wrap": true
        }
    ]
}

Teams invoke response as following:

{
    "composeExtension": {
        "attachments": [
            {
                "content": {
                    "type": "AdaptiveCard",
                    "body": [
                        {
                            "color": null,
                            "horizontalAlignment": null,
                            "isSubtle": false,
                            "maxLines": 0,
                            "size": "small",
                            "text": "test ios",
                            "weight": null,
                            "wrap": true,
                            "separator": false,
                            "type": "TextBlock"
                        }
                    ],
                    "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
                    "version": "1.2"
                },
                "contentType": "application/vnd.microsoft.card.adaptive",
                "preview": {
                    "content": {
                        "type": "AdaptiveCard",
                        "body": [
                            {
                                "color": null,
                                "horizontalAlignment": null,
                                "isSubtle": false,
                                "maxLines": 0,
                                "size": "small",
                                "text": "test ios",
                                "weight": null,
                                "wrap": true,
                                "separator": false,
                                "type": "TextBlock"
                            }
                        ],
                        "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
                        "version": "1.2"
                    },
                    "contentType": "application/vnd.microsoft.card.adaptive"
                }
            }
        ],
        "type": "result",
        "attachmentLayout": "list"
    },
    "responseType": "composeExtension"
}

Another question, I found client received message adaptive card version is "1.2", but my bot host send version is "1.4". I cannot found why the version changed.

Expected behavior

Teams channel compose extension result adaptive card will insert into compose box in iOS client.

Actual behavior

Compose extension result adaptive card didn't insert into compose box in iOS, in teams channel posts. and compose box closed automatically. But it worked well in other platform, and worked well in web teams client and desktop client.

Error details

NO Error.

microsoft-github-policy-service[bot] commented 1 month ago

Hi yungfu! Thank you for bringing this issue to our attention. We will investigate and if we require further information we will reach out in one business day. Please use this link to escalate if you don't get replies.

Best regards, Teams Platform

sayali-MSFT commented 1 month ago

@yungfu - Thanks for reporting your issue. We will check this at our end and will get back to you.

sayali-MSFT commented 1 month ago

@yungfu - We are able to repro that issue, we have raised bug for the same. We will inform you once we get any update. IOS Teams Version-6.18.77.2024182602/0928 IOS Version-17.7