I've added APL support to my skill but now I can't understand how to check if the device has a display and therefore supports APL. Seems pretty easy in Node.js but Python (3.7) has been driving me crazy. I have tried the approach mentioned here, but I'm using a class based lambda function and I'm not sure how to use that code. I've also tried this:
if context.System.device.supportedInterfaces.Display is None
I've checked and double checked the documentation and all the sample skills, but apparently they forgot to check for APL support in their sample skill as well. I'm really at a loss here. Can someone point me in the right direction?
I've been dealing with this myself to develop my own skill and I think I've achieved this by checking if
handler_input.request_envelope.context.system.device.supported_interfaces.display
isNone
.This way, system exists in this context. I hope this may help you!