AdaptiveCards icon indicating copy to clipboard operation
AdaptiveCards copied to clipboard

[Doc-enhancement] Adaptive card shows empty in iOS Teams client - Troubleshooting steps

Open SubbaReddi opened this issue 2 years ago • 0 comments

If the adaptive card is generated with dynamic data and posted to bot chat. It works fine in Desktop teams, web and android. But it is failing to render in iOS teams in some cases. Seeing placeholder only.

We can get card JSON from iOS and debug the issue using following steps:

  • Enable dev preview in iOS mobile teams client
  • Validate whether dev preview is ON or not. If yes, proceed with next step.
  • Navigate to bot adaptive card
  • Long press on empty adaptive card -> Click on “Inspect Card”
  • It opens popup window with card JSON. Copy the card JSON and validate if any mandatory properties are missing.

If any mandatory properties are missing, then it fails to render in iOS but working fine in other clients. For example, Action.ToggleVisibility have mandatory field like targetElements. If it is missing it will not render in iOS teams.

image

Adding above information to documentation will help for developers to validate the issue.


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

SubbaReddi avatar Jul 07 '22 17:07 SubbaReddi