[英]Can I send my Alexa skill users a one-time notification when they load the skill for the first time after I've updated it?
I have a pretty dumb skill in the Alexa Skills store that I plan on releasing an update for. 我打算在Alexa Skills商店中发布一项更新的愚蠢技能。 I couldn't find anything in the documentation about one-time update notifications, is there an OOTB way to let customers know (once) that the skill has been updated, without creating a persistence layer to track each individual user and if they've launched the skill or not? 我在文档中找不到有关一次性更新通知的任何信息,是否有一种OOTB方法可以让客户(一次)知道技能已更新,而无需创建持久层来跟踪每个用户以及他们是否是否启动了技能?
If you plan to send a message to every user that uses your skill after the update, it's possible somehow. 如果您打算在更新后向使用您的技能的每个用户发送消息,则可能会发生某种情况。
In every Alexa request you get the userId
and deviceId
, you could store these in a DynamoDB table or any other storage system, associating to every user a simple flag that gets checked at the first request after the update. 在每个Alexa请求中,您都获得userId
和deviceId
,您可以将它们存储在DynamoDB表或任何其他存储系统中,从而将与每个用户相关联的简单标志关联到更新后的第一个请求处。 The simplest way to do this would probably be a .csv file stored locally, however this depends on how your code is run and where it's stored. 最简单的方法可能是在本地存储一个.csv文件,但这取决于代码的运行方式和存储位置。
After you stored this information, in your code just read the user data and respond appropriately if the flag is checked or not. 在存储了此信息之后,只需在代码中读取用户数据并适当地响应该标志(是否已选中)即可。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.