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

Adaptive card is not rendered on android phone #140

Open
tinex81 opened this issue Oct 25, 2022 · 1 comment
Open

Adaptive card is not rendered on android phone #140

tinex81 opened this issue Oct 25, 2022 · 1 comment

Comments

@tinex81
Copy link

tinex81 commented Oct 25, 2022

Dear rveach maintainer,

i would like to submit this issue on android phone that the adaptive card is not rendered well.
That is, from android when you click on the buttons (of a potential action) the context menu will appears, such as the calendar or the multi-selection of some values.
What does not appear instead is the enter key of the choice you want to make. The pictures perhaps explain better.
This is a comparison table, where:

  • the first column represents how potential actions, created through pymsteams, works well on windows 10 with the teams application
  • the second column represents how potential actions, created through pymsteams, doesn't work well on android with the teams application
  • the third column represents how potential actions, created with thirdy party tool, works well on android with the teams application.

For the image see the follow link: https://i.imgur.com/VvAaH5S.png

The code I am using is the following.

import pymsteams

# You must create the connectorcard object with the Microsoft Webhook URL
myTeamsMessage = pymsteams.connectorcard("MY-CURRENT-WEBHOOK")

# Add text to the message.
myTeamsMessage.text("this is my text")
myTeamsMessage.title("This is my message title")

# create the section
myMessageSection = pymsteams.cardsection()

#Potential Action1
myTeamsPotentialAction1 = pymsteams.potentialaction(_name = "Add a comment")
myTeamsPotentialAction1.addInput("TextInput","comment","Add a comment here",False)
myTeamsPotentialAction1.addAction("HttpPost","Add Comment","https://www.lg.com") 

#Potential Action2
myTeamsPotentialAction2 = pymsteams.potentialaction(_name = "Set due date")
myTeamsPotentialAction2.addInput("DateInput","dueDate","Enter due date")
myTeamsPotentialAction2.addAction("HttpPost","save","https://www.virustotal.com")

#Potential Action3
myTeamsPotentialAction3 = pymsteams.potentialaction(_name = "Change Status")
myTeamsPotentialAction3.choices.addChoices("In progress","0")
myTeamsPotentialAction3.choices.addChoices("Active","1")
myTeamsPotentialAction3.addInput("MultichoiceInput","list","Select a status",False)
myTeamsPotentialAction3.addAction("HttpPost","Save","https://nvd.nist.gov/")

myTeamsMessage.addPotentialAction(myTeamsPotentialAction1)
myTeamsMessage.addPotentialAction(myTeamsPotentialAction2)
myTeamsMessage.addPotentialAction(myTeamsPotentialAction3)

# Summary
myTeamsMessage.summary("Test Message")

# Then send the card
myTeamsMessage.send()

I can confirm that is probably something with the pymsteams and not related to android, as i have other Teams channel where on android , the button on potential action works as expected.
May i can link some info about that

Regards

@tinex81
Copy link
Author

tinex81 commented Oct 25, 2022

Updates: I have tested https://i.imgur.com/VvAaH5S.png
with an IOS smartphone, and it works as expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant