Hello,
I got the problem when trying to update card information in Echo show display and Echo spot display.
First, I implement withSimpleCard in LaunchRequestHandler and it works.
Then in other IntentHandler, I updated card information by include .withSimpleCard() in responseBuilder but the Echo show display shows "The template is not available or currently not supported"
I tested on Alexa developer console
Thank you for your support!
Code:
const LaunchRequestHandler = { canHandle(handlerInput) { return handlerInput.requestEnvelope.session.new || handlerInput.requestEnvelope.request.type === 'LaunchRequest'; }, async handle(handlerInput) { const speechText = 'Welcome to Reading Game'; return handlerInput.responseBuilder .speak(speechText) .withSimpleCard('Welcome to Reading Game', 'Hello') // It works .getResponse(); } }; const AnswerIntentHander = { canHandle(handlerInput) { return handlerInput.requestEnvelope.request.type === 'IntentRequest' && handlerInput.requestEnvelope.request.intent.name === 'AnswerIntent'; }, handle(handlerInput) { var correctAnswer = "student"; const speechText = "The correct answer is " + correctAnswer; return handlerInput.responseBuilder .speak(speechText) .withSimpleCard('Correct answer: ', correctAnswer) // It does not work .getResponse(); } };