admin管理员组

文章数量:1279085

I'm developing a skill that launches through a widget button. It works perfectly on the Echo Show 15, but on the Echo Hub 8, the widget button isn't sending SendEvent.I'm unable to identify the issue and could really use some help.THe widget is responsive for both the screens but its not responding to the button in the echo hub 8 , not getting arguments in the cloudwatchlogs

{
    "document": {
        "type": "APL",
        "version": "1.7",
        "theme": "light",
        "mainTemplate": {
            "parameters": [
                "payload"
            ],
            "items": [
                {
                    "type": "Container",
                    "direction": "row",
                    "items": [
                        {
                            "type": "Frame",
                            "background": "#2B97BD",
                            "width": "100%",
                            "height": "100%",
                            "items": [
                                {
                                    "type": "Container",
                                    "direction": "column",
                                    "alignItems": "center",
                                    "padding": [
                                        0,
                                        10,
                                        10,
                                        10
                                    ],
                                    "items": [
                                        {
                                            "type": "Text",
                                            "top": "${viewport.width > 264 ? '100dp' : '40dp'}",
                                            "text": "Welcome to Goose Pond",
                                            "fontSize": "${viewport.width > 264 ? '40dp' : '30dp'}",
                                            "textAlign": "center",
                                            "fontFamily": "Roboto",
                                            "fontWeight": "bold",
                                            "color": "#FFFFFF"
                                        },
                                        {
                                            "type": "Text",
                                            "top": "${viewport.width > 264 ? '130dp' : '60dp'}",
                                            "text": "Info and House Control for your stay",
                                            "fontSize": "${viewport.width > 264 ? '35dp' : '30dp'}",
                                            "fontFamily": "Roboto",
                                            "textAlign": "center",
                                            "fontWeight": "bold",
                                            "color": "#FFFFFF"
                                        },
                                        {
                                            "type": "TouchWrapper",
                                            "top": "${viewport.width > 264 ? '170dp' : '80dp'}",
                                            "width": "${viewport.width > 264 ? '360dp' : '250dp'}",
                                            "height": "${viewport.height > 384 ? '450dp' : '220dp'}",
                                            "onPress": [
                                                {
                                                    "type": "SendEvent",
                                                    "flags": {
                                                        "interactionMode": "STANDARD"
                                                    },
                                                    "arguments": [
                                                        "widget"
                                                    ]
                                                }
                                            ],
                                            "items": [
                                                {
                                                    "type": "Text",
                                                    "text": "Let's Start",
                                                    "fontWeight": "500",
                                                    "fontFamily": "Roboto",
                                                    "fontSize": "${viewport.width > 264 ? '50dp' :'40dp'}",
                                                    "color": "#FFFFFF",
                                                    "textAlign": "center"
                                                }
                                            ]
                                        }
                                    ]
                                }
                            ]
                        }
                    ]
                }
            ]
        }
    },
    "datasources": {}
}

please help me in this , the code is perfectly handling the send events as working perfectly in the echo show 15

本文标签: alexa skills kitWidget Button Not Working in the Echo hub 8Stack Overflow