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

[iOS] Adaptive card not rendering in mobile #7929

Open
SubbaReddi opened this issue Jan 19, 2023 · 13 comments
Open

[iOS] Adaptive card not rendering in mobile #7929

SubbaReddi opened this issue Jan 19, 2023 · 13 comments
Assignees
Labels
bug teams-developer-support Question related to extensibility (Bot, ME, Tab) would be marked under this label

Comments

@SubbaReddi
Copy link
Collaborator

Even If the adaptive card JSON is missing mandatory fields, card is rendering fine in Desktop, Web teams. But showing empty card in iOS mobile.

For example. below card with image is missing URL property. If we send this card using bot, card displays blank in iOS mobile.
So, please add note in documentation to indicate issue is with card JSON.

{
"type": "AdaptiveCard",
"body": [
{
"type": "ColumnSet",
"columns": [
{
"type": "Column",
"items": [
{
"type": "Image",
"style": "default",
"size": "Small"
}
],
"widh": "auto",
"width": "stretch"
}
]
}
]
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"version": "1.4"
}


Document Details

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

@SubbaReddi SubbaReddi added the doc-enhancement If feedback is about suggested improvements/additions, but no evidence customer was blocked. label Jan 19, 2023
@ghost
Copy link

ghost commented Jan 19, 2023

Hi SubbaReddi! 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

@ghost ghost added the needs-triage 🔍 label Jan 19, 2023
@ghost ghost added this to Needs triage in Teams App Development Jan 19, 2023
@ghost ghost added the teams-developer-support Question related to extensibility (Bot, ME, Tab) would be marked under this label label Jan 19, 2023
@ghost ghost added this to Wish List in MSTeams DevDocs Jan 19, 2023
@ghost ghost removed this from Needs triage in Teams App Development Jan 19, 2023
@ChetanSharma-msft
Copy link
Collaborator

Hello @SubbaReddi - Thanks for raising the issue.
We will check on it and redirect to doc team accordingly.

@Prasad-MSFT
Copy link
Collaborator

Prasad-MSFT commented Jan 20, 2023

@SubbaReddi - We tried to repro this issue using Teams Desktop, Web and Mobile clients. The card is rendering without any content in MS Teams Desktop, Web and Android client. However, in iOS the card is not rendering at all.
Teams Desktop/Web:
image
Teams Version:
Microsoft Teams Version 1.6.00.1579
Android:
image
Teams Version:
image
iOS:
image
Teams Version:
image

@SubbaReddi
Copy link
Collaborator Author

@Prasad-MSFT : It was not the case earlier.
In that case, documentation should indicate as follows: "If the adaptive card JSON is missing required properties, card will show blank". Applies all teams clients.

@Prasad-MSFT
Copy link
Collaborator

Prasad-MSFT commented Jan 23, 2023

@SubbaReddi - But in iOS, the card is not showing at all right? It is not consistent in all clients.
If we will update the doc, it might be misleading.

@Prasad-MSFT Prasad-MSFT added the needs-author-feedback Needs more info from the customer. label Jan 23, 2023
@ghost ghost added this to Waiting For User Response in Teams App Development Jan 23, 2023
@ghost
Copy link

ghost commented Jan 28, 2023

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 3 days. It will be closed if no further activity occurs within 3 days of this comment.

@surbhigupta12 surbhigupta12 removed the doc-enhancement If feedback is about suggested improvements/additions, but no evidence customer was blocked. label Jan 30, 2023
@SubbaReddi
Copy link
Collaborator Author

@Prasad-MSFT : Our observation is card showing blank in iOS mobile. But card is rendering fine in other clients.

@ghost ghost added needs-attention and removed needs-author-feedback Needs more info from the customer. labels Feb 1, 2023
@ghost ghost moved this from Waiting For User Response to Active in Teams App Development Feb 1, 2023
@Prasad-MSFT
Copy link
Collaborator

But @SubbaReddi - Will it be good if we update doc saying ""If the adaptive card JSON is missing required properties, card will show blank". Applies all Teams clients."? Because it shows blank only in iOS, not in all Teams client.

@SubbaReddi
Copy link
Collaborator Author

Agree. It is showing blank only in iOS.

@Prasad-MSFT
Copy link
Collaborator

Thanks @SubbaReddi for confirming. So, i would suggest to not document this as it doesn't apply for all Teams clients.

@ChetanSharma-msft
Copy link
Collaborator

Hello @SubbaReddi, @Prasad-MSFT - As per my understanding, it's a bug in iOS device because sample card is showing properly in Desktop and other clients.

We will and raise a bug accordingly, if needed.

@Prasad-MSFT
Copy link
Collaborator

@SubbaReddi - Tested the issue again using below JSON

{
  "type": "AdaptiveCard",
  "body": [
    {
      "type": "TextBlock",
      "text": "For Samples and Templates, see [https://adaptivecards.io/samples](https://adaptivecards.io/samples)"
    },
    {
      "type": "ColumnSet",
      "columns": [
        {
          "type": "Column",
          "items": [
            {
              "type": "Image",
              "style": "default",
              "size": "Small"
            }
          ],
          "widh": "auto",
          "width": "stretch"
        }
      ]
    }
  ],
  "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
  "version": "1.4"
}

and observed that in MS Teams Desktop (Microsoft Teams Version 1.6.00.2979) and Web client, the card renders even with missing properties.
image

However, card displays blank in Android devices and doesn't render at all in iOS devices.

Android:
image
Version:
image

iOS:
image

Version:
image

@Prasad-MSFT
Copy link
Collaborator

We have raised a bug for the same and engineering team is looking into it. We will inform you once we get any further update.

Thanks!

@Prasad-MSFT Prasad-MSFT added the bug label Feb 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug teams-developer-support Question related to extensibility (Bot, ME, Tab) would be marked under this label
Projects
MSTeams DevDocs
  
Wish List
Development

No branches or pull requests

5 participants