question

zivmiz avatar image
zivmiz asked ·

ask cli is not enabling APL

I added APL to my skill. and I’m trying to update my skill to support APL via ask-cli. but it’s doesn’t work. I add the

"interfaces": [
  {
    "type": "ALEXA_PRESENTATION_APL"
  }
]

to the skill.json file

I also tried with the viewports:

"interfaces": [
  {
    "type": "ALEXA_PRESENTATION_APL",
    "supportedViewports": [
      {
        "mode": "HUB",
        "shape": "ROUND",
        "minWidth": 480,
        "maxWidth": 480,
        "minHeight": 480,
        "maxHeight": 480
      },
      {
        "mode": "HUB",
        "shape": "RECTANGLE",
        "minWidth": 1024,
        "maxWidth": 1024,
        "minHeight": 600,
        "maxHeight": 600
      },
      {
        "mode": "HUB",
        "shape": "RECTANGLE",
        "minWidth": 1280,
        "maxWidth": 1280,
        "minHeight": 800,
        "maxHeight": 800
      },
      {
        "mode": "TV",
        "shape": "RECTANGLE",
        "minWidth": 960,
        "maxWidth": 960,
        "minHeight": 540,
        "maxHeight": 540
      }
    ]
  }


But it doesn't works?

anyone knows why?

Thanks!!

alexaamazon device messagingaplask clialexa presentation language
10 |2000 characters needed characters left characters exceeded

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

1 Answer

Gaetano@Amazon avatar image
Gaetano@Amazon answered ·

Hello,

Here is how the skill.json file should look like if you want to enable APL from the CLI:

{
  "manifest": {
    "apis": {
      "custom": {
        "endpoint": {
          "uri": "arn:aws:lambda:eu-west-1:xxx"
        },
        "interfaces": [
          {
            "supportedViewports": [
              {
                "maxHeight": 480,
                "maxWidth": 480,
                "minHeight": 480,
                "minWidth": 480,
                "mode": "HUB",
                "shape": "ROUND"
              },
              {
                "maxHeight": 600,
                "maxWidth": 1024,
                "minHeight": 600,
                "minWidth": 1024,
                "mode": "HUB",
                "shape": "RECTANGLE"
              },
              {
                "maxHeight": 800,
                "maxWidth": 1280,
                "minHeight": 800,
                "minWidth": 1280,
                "mode": "HUB",
                "shape": "RECTANGLE"
              },
              {
                "maxHeight": 540,
                "maxWidth": 960,
                "minHeight": 540,
                "minWidth": 960,
                "mode": "TV",
                "shape": "RECTANGLE"
              },
              {
                "maxHeight": 480,
                "maxWidth": 960,
                "minHeight": 480,
                "minWidth": 960,
                "mode": "HUB",
                "shape": "RECTANGLE"
              }
            ],
            "type": "ALEXA_PRESENTATION_APL"
          }
        ]
      }
    },
    "manifestVersion": "1.0",
    "publishingInformation": {
      "category": "KNOWLEDGE_AND_TRIVIA",
      "distributionCountries": [],
      "isAvailableWorldwide": true,
      "locales": {
        "en-US": {
          "description": "Sample Full Description",
          "examplePhrases": [
            "Alexa open hello world",
            "hello",
            "help"
          ],
          "name": "your sample skill",
          "summary": "Sample Short Description"
        }
      },
      "testingInstructions": "Sample Testing Instructions."
    }
  }
}

Please try this one and let me know.

If you are still having the issue, please share your current skill.json file and post your CLI version , retrievable with the following command:

ask --version

Kind regards,
Gaetano

10 |2000 characters needed characters left characters exceeded

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