Can someone help. I feel I have done cancel correctly but it doesn't exit the skill on devices with a screen.
It simply goes to the main screen on the app.
It should work the same way as
Am I missing something in the below code?
const CancelAndStopIntentHandler = { canHandle(handlerInput) { return handlerInput.requestEnvelope.request.type === 'IntentRequest' && (handlerInput.requestEnvelope.request.intent.name === 'AMAZON.CancelIntent' || handlerInput.requestEnvelope.request.intent.name === 'AMAZON.StopIntent'); }, handle(handlerInput) { const speechText = 'Goodbye!'; return handlerInput.responseBuilder .speak(speechText) .getResponse(); }, };