hasDisplay question

While testing a skill on Echo Device, it works ok.
But on Android Device with the Alexa App,sometimes it works, sometimes it gives the following error:

So I am trying the “hasDisplay” code suggested by Nick.

hasDisplay = voiceflow.capabilities && ('Alexa.Presentation.APL' in voiceflow.capabilities);

The code block throws an error in the Prototype debug mode…

image

  • Basically, Alexa app does not support APL.
  • hasDisplay check only works on ADC, Echo devices, Fire tablet with show mode or Alexa app. VF Prototype does not support it.