Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
// Añadir antes de la respuesta para dispositivos APL
if (!APLsupport(handlerInput)) {
return handlerInput.responseBuilder
.speak(speechOutput)
.withSimpleCard(SKILL_NAME, randomFact)
.withShouldEndSession(true)
.getResponse();
}
// Función para detectar Soporte APL en dispositivos Alexa
function APLsupport(handlerInput) {
const Interface = handlerInput.requestEnvelope.context.System.device.supportedInterfaces;
const APL = Interface['Alexa.Presentation.APL'];
return APL != null && APL != undefined;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.