My skill display an APL that runs a video, and onEnd it fires SendEvent to my skill.
the problem is that skill never got this SendEvent. CloudWatch does not show any log for the sendEvent handler.
here is the request handler in my skill
class APLUserEventHander(AbstractRequestHandler): """ Handles RecipeIntent or APL Touch Event requests sent by Alexa """ def can_handle(self, handler_input): #logger.info("------> In userEvent intent") #logger.info(list(handler_input.request_envelope.request.arguments)[0]) return is_request_type('Alexa.Presentation.APL.UserEvent')(handler_input) def handle(self, handler_input): logger.info("-----> In userEvent") handler_input.response_builder.set_should_end_session(Tru return handler_input.response_builder.response
This is my APL
{ "type": "APL", "version": "2023.1", "license": "Copyright 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.\nSPDX-License-Identifier: LicenseRef-.amazon.com.-AmznSL-1.0\nLicensed under the Amazon Software License http://aws.amazon.com/asl/", "settings": {}, "theme": "dark", "import": [ { "name": "alexa-layouts", "version": "1.6.0" } ], "resources": [], "styles": {}, "onMount": [], "graphics": {}, "commands": {}, "layouts": {}, "mainTemplate": { "parameters": [ "payload" ], "items": [ { "alignItems": "center", "direction": "column", "justifyContent": "center", "type": "Container", "disabled": true, "width": "100%", "height": "100%", "items": [ { "type": "AlexaBackground", "backgroundImageSource": "${payload.data.backgroundImage}", "colorOverlay": true }, { "type":"Video", "id":"versePlayer", "audioTrack": "foreground", "source":"${payload.data.verseAudio}", "autoplay": true, "maxHeight": "2dp", "maxWidth": "20dp", "alignSelf": "center", "onEnd":[ { "type":"SendEvent", "arguments": ["playbackFinished"] } ] }, { "text": "${payload.data.mainText}", "fontFamily": "georgia", "fontSize": "50dp", "textAlign": "center", "textAlignVertical": "center", "color": "red", "id": "title", "type": "Text", "speech": "${payload.data.verseAudio}" }, { "id": "subTitle", "fontSize": "30dp", "text": "${payload.data.subText}", "type": "Text", "textAlign": "center", "textAlignVertical": "center", "width": "700dp", "height": "32dp", "paddingTop": "50dp", "paddingBottom": "12dp" } ] } ] } }