question

Deividson Damasio avatar image
Deividson Damasio asked

Alexa App for PC doesn't send viewport in the skill request

Hello!


I am testing that APL on Alexa App for PC:

APL 2022.1: https://apl.ninja/ZZIywpbz
APL 1.6: https://apl.ninja/document/dadeke/gtvs1RxTDiKQt7OW9uqfeQy1mYx9bxMo

Screenshot_apl_viewport_properties.png

But the Alexa App for PC doesn't send viewport in the skill request.
So I can't access that data using Node.js:

Code:

console.log(JSON.stringify(handlerInput.requestEnvelope.context));

Result:

{
    "Extensions": {
        "available": {
            "aplext:backstack:10": {}
        }
    },
    "System": {
        "application": {
            "applicationId": "amzn1.ask.skill.XXX"
        },
        "user": {
            "userId": "amzn1.ask.account.XXX"
        },
        "device": {
            "deviceId": "amzn1.ask.device.XXX",
            "supportedInterfaces": {
                "Alexa.Presentation.APL": {
                    "runtime": {
                        "maxVersion": "1.6"
                    }
                }
            }
        },
        "apiEndpoint": "https://api.amazonalexa.com",
        "apiAccessToken": "XXX"
    }
}

Why? (◜_◝)ゞ
Please, can you help me?


References:
https://developer.amazon.com/en-US/docs/alexa/alexa-presentation-language/apl-viewport-property.html#properties
https://developer.amazon.com/en-US/docs/alexa/alexa-presentation-language/apl-interface.html#viewport-object

devicesaplalexa skillsrequest
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

0 Answers