在 Microsoft Teams android 应用程序上使用消息扩展时任务的空白视图列表

Blank view list of tasks when using the message extension on Microsoft Teams android app

我在 Microsoft Teams 上构建了一个扩展,并在 android 设备上获得了一个列表的空白视图,即列表在那里但显示空白。

它在 iOS 和 Android 中运行良好。请查看下图:

我在 colorTheme 选项中尝试了多种颜色,但它似乎不起作用。它没有在扩展中反映任何内容。

response.data.data.forEach(obj => {
  const heroCard = CardFactory.o365ConnectorCard({
    title: obj.title,
    text: obj.percentComplete,
    summary: obj.Notes,
    "themeColor": "#6264A7",
    "sections": [{
      "title": `**Notes:** ${obj.Notes}`,
      "text": `**Created Date:** ${obj.createdTimestamp}`,
     }]
   });
   attachments.push({ ...heroCard });
});

最初,我使用的是 o365ConnectorCard,然后我尝试使用 heroCard 它工作正常,现在也在 android 设备上显示。

示例代码:

response.data.data.forEach(obj => {
  const heroCard = CardFactory.heroCard(obj.title);
  const preview = CardFactory.heroCard(obj.percentComplete);                    
  preview.content.tap = { type: 'invoke', value: { description: obj.Notes } };
  const attachment = { ...heroCard, preview };
  attachments.push(attachment);
});