MicrosoftDocs / AdaptiveCards

Docs for Adaptive Cards
https://docs.microsoft.com/en-us/adaptive-cards/
Creative Commons Attribution 4.0 International
72 stars 138 forks source link

Unable to view adaptive card with multiple Input.Choice schema #140

Open ryanwwt opened 5 years ago

ryanwwt commented 5 years ago

Hi I'm unable to view adaptive card with multiple Input.Choice schema. I'm able to view a card with single Input.Choice schema but unable to do so for an adaptive card with multiple schema. I'm using 3 android phones. Google Pixel XL, Google Pixel 3, and Sony Xperia XZ1. The cards work fine with iPhones.


Document Details

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

matthidinger commented 5 years ago

Hi @ryanwwt, can you provide the JSON payload you're using as well as more details on what isn't working correctly. Is the card failing to render entirely using our Android SDKs but working on iOS? Any error messages or anything you can provide?

ryanwwt commented 5 years ago

Hi @matthidinger, I believe the card is not rendering. What I see on my android phones are just blank white boxes. Below is the JSON we're using. We're using multiple Action.ShowCards with Input.ChoiceSets

WelcomeCard = { "$schema": "http://adaptivecards.io/schemas/adaptive-card.json", "type": "AdaptiveCard", "version": "1.0", "body": [ { "type": "TextBlock", "text": "Please choose the application", "size": "medium", "weight": "bolder" } ], "actions": [ { "type": "Action.ShowCard", "title": "App", "card": { "type": "AdaptiveCard", "body": [ { "type": "TextBlock", "text": "Please choose the application", "size": "medium", "weight": "bolder" } ], "actions": [ { "type": "Action.ShowCard", "title": "Task Server", "card": { "type": "AdaptiveCard", "body": [ { "type": "TextBlock", "text": "Please choose the category", "size": "medium", "weight": "bolder" }, { "type": "Input.ChoiceSet", "id": "taskserver_opt", "style": "expanded", "choices": [ { "title": "Task Status", "value": "check_task_status" }, { "title": "Task Server Summary", "value": "check_task_server_summary" }, { "title": "Task Server Routing", "value": "check_task_server_routing" }, { "title": "Task Server Usage", "value": "check_task_server_usage" }, { "title": "Task Server MR", "value": "check_task_server_mr" }, { "title": "Task Server Status", "value": "check_task_server_status" } ] } ], "actions": [ { "type": "Action.Submit", "title": "OK", "data": { "intent": "check_taskserver" } } ] } }, { "type": "Action.ShowCard", "title": "Interface", "card": { "type": "AdaptiveCard", "body": [ { "type": "TextBlock", "text": "Please choose the category", "size": "medium", "weight": "bolder" }, { "type": "Input.ChoiceSet", "id": "interface_opt", "style": "expanded", "choices": [ { "title": "DC status", "value": "check_dc_status" }, { "title": "Pending Process", "value": "check_pending_process" }, { "title": "Schedule Last Message", "value": "check_schedule_last_message" }, { "title": "Log Last Message", "value": "checklog_last_message" } ] } ], "actions": [ { "type": "Action.Submit", "title": "OK", "data": { "intent": "check_interface" } } ] } }, { "type": "Action.ShowCard", "title": "Infra", "card": { "type": "AdaptiveCard", "body": [ { "type": "TextBlock", "text": "Please choose the category", "size": "medium", "weight": "bolder" }, { "type": "Input.ChoiceSet", "id": "infra_opt", "style": "expanded", "choices": [ { "title": "Check DB Status", "value": "check_db_status" }, { "title": "Check DB Alias", "value": "check_db_alias" }, { "title": "Data Power", "value": "Check_data_power" }, { "title": "MFT", "value": "check_mft" } ] } ], "actions": [ { "type": "Action.Submit", "title": "OK", "data": { "intent": "check_infra" } } ] } }, { "type": "Action.ShowCard", "title": "App", "card": { "type": "AdaptiveCard", "body": [ { "type": "TextBlock", "text": "Please choose the category", "size": "medium", "weight": "bolder" }, { "type": "Input.ChoiceSet", "id": "um_app_opt", "style": "expanded", "choices": [ { "title": "App Status", "value": "check_app_status" }, { "title": "Home Director Size", "value": "check_home_director_size" }, { "title": "Metadata Touch", "value": "check_metadata_touch" }, { "title": "Number of User Login", "value": "check_number_of_user_login" }, { "title": "Metadata size", "value": "check_metadata_size" }, { "title": "Number of user session", "value": "check_number_of_user_session" } ] } ], "actions": [ { "type": "Action.Submit", "title": "OK", "data": { "intent": "check_app" } } ] } }, { "type": "Action.ShowCard", "title": "Common Incident", "card": { "type": "AdaptiveCard", "body": [ { "type": "TextBlock", "text": "Please choose the category", "size": "medium", "weight": "bolder" }, { "type": "Input.ChoiceSet", "id": "common_incident_opt", "style": "expanded", "choices": [ { "title": "Unable to access", "value": "unable_to_access" }, { "title": "Task Server Error", "value": "task_server_error" } ] } ], "actions": [ { "type": "Action.Submit", "title": "OK", "data": { "intent": "check_common_incident" } } ] } } ] } }, { "type": "Action.ShowCard", "title": "ACP", "card": { "type": "AdaptiveCard", "body": [], "actions": [ { "type": "Action.Submit", "title": "OK", "data": { "intent": "acp" } } ] } } ] };

ryanwwt commented 5 years ago

@matthidinger are you able to find the issue on this?

matthidinger commented 5 years ago

Hi @ryanwwt, I'm having a hard time reproducing the issue. We tested the payload in the Android renderer and it seems to be working properly. Are you rendering the cards yourself, or using something like Bot Framework?

image

ryanwwt commented 5 years ago

Hi @matthidinger, we're using BotFramework to store and send the codes above to Teams. Apologies as I forgot to mention that.

ryanwwt commented 5 years ago

Hi @matthidinger, did you manage to simulate the issue?

matthidinger commented 5 years ago

Sorry for the delay here @ryanwwt, I'm looping in the Teams folks to try and recreate. Will report back as soon as I hear

billbliss commented 5 years ago

We have reproduced this - it renders fine on desktop and iOS but not Android. Thanks for reporting this and we apologize for the problem.

ryanwwt commented 5 years ago

Thanks @matthidinger and @billbliss, may I know what would be the next steps for this?

ryanwwt commented 5 years ago

Hi @billbliss, may I know if there is an ETC for this issue?