Why does Teams Mobile App “HttpPOST” Action not work on card, works fine on desktop/Web Client

China☆狼群 提交于 2019-12-08 13:17:18

问题


I am creating an action card that has two buttons, one to Open a hyperlink to a video, the other to trigger a Webhook. They both work perfectly on Desktop and Web Clients, but on the mobile clients (Apple and Android Tested) the webhook/HttpPOST button does nothing. No error or any indication why.

I have changed the Webhook URL and media for privacy.

{
    "@context": "https://schema.org/extensions",
    "@type": "ActionCard",
    "themeColor": "ff0000",
    "title": "Motion Alert - North Lot",
    "summary": "Motion Alert - North Lot",
    "text": "![NorthLotImage](http://aka.ms/Fo983c)",
    "potentialAction": [
    {
        "@type": "OpenUri",
        "name": "View Video",
        "targets":
        [
            {
            "os":  "default",
            "uri":  "https://www.w3schools.com/html/mov_bbb.mp4"
            }
        ] 
    },
    {
        "@type": "HttpPOST",
        "name": "Trigger Siren",
        "target": "https://webhooktest.com/api/"
    },    
    ]
}

ScreenShot

Working on Windows Client

Not Working on iPhone - Video

来源:https://stackoverflow.com/questions/54451980/why-does-teams-mobile-app-httppost-action-not-work-on-card-works-fine-on-desk

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!