Closed gustavopaes closed 5 years ago
Hey @gustavopaes!
Platform-specific calls should be checked. Try this:
app.setHandler({
async LAUNCH() {
if (this.isAlexaSkill()) {
this.$alexaSkill.addDirective({
type: 'Alexa.Presentation.APL.RenderDocument',
version: '1.0',
document,
datasources,
});
}
this.ask(speeches.LaunchRequest, speeches.LaunchRequest);
},
})
I'm submitting a...
Expected Behavior
I can call
this.$alexaSkill.addDirective
method without check if the conversation come from Alexa or Google Assistant or any other one. The framework need abstract this from meCurrent Behavior
Call
this.$alexaSkill.addDirective
method can't broke Google Assistant webhook calls.But when I create a Google Assistant conversation, I am getting this message error:
Your Environment