Skip to content

Display.ElementSelected comes with a session object #78

Description

@ThomasI81

I found a inconsistent behaviour in the SpeechletService when handling the DisplayRequest.
Unfrotunately I don't have a good idea how to deal with it... so far.

The DisplayRequest is derived from ExtendedSpeechletRequest which is correct as it provides a type and a subtype. SpeechletService::ProcessRequestAsync(...) either handles ExtendedSpeechletRequests without
a Session object (which is also correct in terms of https://developer.amazon.com/de/docs/custom-skills/request-and-response-json-reference.html#request-body-parameters) or as an SpeechletRequest with Session object.

The problem is, that the Display.ElementSelected Event from Amazon comes with session information in the original JSON, it's correctly parsed but finally lost inside ProcessRequestAsync(..).
(It's not clearly stated in https://developer.amazon.com/de/docs/custom-skills/display-interface-reference.html#touch-selection-events)

Maybe someone has a good idea how to deal with it!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions