Forum Discussion
RyosukeShintani
Feb 02, 2023Copper Contributor
Error with message extension on iOS only.
I used the message extension for Microsoft Teams to display a Hero Card in the input field. Only in the case of iOS, the error seems to be caused by a different definition of the JSON sent to th...
- Sep 26, 2023RyosukeShintani - The bug has been fixed now. We have tested this on IOS 16.6.1 and Teams version 15.6.0.
Could you please test this and confirm once?
Nivedipa-MSFT
Microsoft
Feb 02, 2023RyosukeShintani - Thanks for reporting your issue. Could you please share your Hero card Json to test at our end?
RyosukeShintani
Feb 02, 2023Copper Contributor
Sorry, I am not good at English, so I may not be able to communicate well...
HeroCard is not involved.
Teams for iOS Message Extension -> choiceset window[send request to azure bot] -> Azure BOT [Error occurs!!] -> return HeroCard to Teams
The json(RequestBody) sent by Teams for iOS to the BOT in the background is wrong.
The json of the messagePayload of the RequestBody is as follows.
#Teams for Windows
"messagePayload": {
"attachments": [],
"body": {
"content": "hoge",
"contentType": "html" },
"createdDateTime": "2023-02-02T02:09:25.773Z",
"deleted": false,
"from": {
"user": {
"userIdentityType": "aadUser",
"displayName": "xxxxxxx",
"id": "xxxxxx" }
},
"id": "xxxxxxxxxx",
"importance": "normal",
"linkToMessage": "xxxxxxxxx",
"locale": "ja-JP",
"mentions": [],
"reactions": [
{
"createdDateTime": "2023-02-02T02:09:44.835Z",
"reactionType": "laugh",
"user": {
"user": {
"userIdentityType": "aadUser",
"displayName": "xxxxxx",
"id": "xxxxxxxxx" }
}
}
],
"subject": ""}
#Teams for iOS
"messagePayload": {
"body": {
"contentType": "html",
"content": "hoge" },
"id": xxxxxxxx,
"reactions": [
{
"reactionType": [
"laugh" ],
"user": {
"conversation": "",
"device": "",
"application": "",
"user": {
"userIdentityType": "aadUser",
"id": "xxxxxxxx",
"displayName": "xxxxxxxx" }
},
"createdDateTime": "2023-02-02T02:09:44.835Z" }
],
"linkToMessage": "xxxxxxxx",
"replyToId": xxxxxxxx,
"subject": "",
"from": {
"conversation": "",
"device": "",
"application": {},
"user": {
"userIdentityType": "aadUser",
"id": "xxxxxxxx",
"displayName": "xxxxxxxx" }
},
"createdDateTime": "2023-02-02T02:09:25.773Z",
"locale": "ja-jp-jp",
"importance": "",
"summary": null,
"deleted": "false",
"mentions": [],
"attachments": [],
"lastModifiedDateTime": ""}
Only when message extensions are used for messages that have reactions in iOS, reactionType is array of string.