[英]Creating a Deep Link to Tab from Notification in Activity Feed
I am developing a MS Team app which has a Tab and a Notification only Bot.我正在开发一个 MS Team 应用程序,它有一个选项卡和一个仅通知机器人。
How can i add a deep link to my tab when the user clicks on the Notification from the Activity Feed.当用户单击活动源中的通知时,如何向我的选项卡添加深层链接。
Sending the notification like below.发送如下通知。
const activity = {
attachments: [card],
text: 'Notification Text',
summary: 'Notification Summary',
channelData: {
notification: {
alert: true
}
}
};
await turnContext.sendActivity(activity);
The slighly tricky part is figuring out the syntax for the deeplink, it's a little confusing the first time you do it, but have a look at the docs for Create Deep Links .稍微棘手的部分是弄清楚深层链接的语法,第一次这样做时会有点混乱,但请查看Create Deep Links的文档。 Once you have the link url itself, then you can send it to the user in the notification, as a regular message, or a card (eg Adaptive Card) or similar.
一旦您拥有链接 url 本身,您就可以在通知中将其作为常规消息或卡片(例如自适应卡片)或类似信息发送给用户。
Some Deep Link parts that can be tricky:一些可能很棘手的 Deep Link 部分:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.