Hi Rahil Faldu
Thank you for reaching out to Microsoft Q&A forum
This is a known platform-specific differentiation in how iOS Teams handles Action.Submit in various contexts. Multiple developers have reported similar behavior where Action.Submit with different msteams.type values (including imBack, messageBack, and task/fetch) work correctly on Android, desktop, and web clients but fail or behave unexpectedly on iOS.
You can read here for more information:
[MsTeams][AdapiveCard] [Adaptive card Support for teams mobile]
iOS not handling task/fetch adaptive card submit action properly
Given this, in this context, you can try the following approach to see if it can resolve your problem:
1. Use Action.Execute instead
You can try to replace Action.Submit with Action.Execute, which has better cross-platform support in newer Teams environments. Then handle the verb in your bot code to send the appropriate response.
"actions": [
{
"type": "Action.Execute",
"title": "Summarize",
"verb": "summarize",
"data": {
"action": "summarize",
"text": "Summarize this answer"
}
}
]
2. Use Action.OpenUrl as a fallback
For iOS compatibility, you could detect the platform and provide an alternative action:
"actions": [
{
"type": "Action.Submit",
"title": "Summarize",
"style": "positive",
"data": {
"msteams": {
"type": "messageBack",
"displayText": "Summarize this answer",
"text": "Summarize this answer",
"value": "{\"action\":\"summarize\"}"
}
}
}
]
3. Try messageBack instead of imBack
Change from imBack to messageBack, which has better iOS support:
"actions": [
{
"type": "Action.Submit",
"title": "Summarize",
"style": "positive",
"data": {
"msteams": {
"type": "messageBack",
"displayText": "Summarize this answer",
"text": "Summarize this answer",
"value": "{\"action\":\"summarize\"}"
}
}
}
]
In my opinion, the messageBack approach (option 3) is likely your best bet for maintaining the current card structure while achieving iOS compatibility. If that doesn't work, Action.Execute is the more modern approach that Microsoft is encouraging for new development.
You can try the above approach, if the problem still persists, kindly let me know in the comments for further support.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.