AlexaAndroid icon indicating copy to clipboard operation
AlexaAndroid copied to clipboard

JSON Response

Open tatasadi opened this issue 6 years ago • 4 comments

Can I have the text response (JSON response) from Amazon in this library? I would like to show in UI a text, which come from the response of alexa. Anybody has an idea?

tatasadi avatar Apr 09 '18 11:04 tatasadi

I don't find it. Is it a class? Can you give me the path to it? or is it a function? in which class?

tatasadi avatar Apr 10 '18 06:04 tatasadi

hello @Ehsanta83, @rohith-krish usually the AVS response will return the two directive which is Speak and RenderTemplate. RenderTemplate will have the necessary meta data to display in the cards. check this link https://developer.amazon.com/docs/alexa-voice-service/display-cards-overview.html#enable-display-cards. when I check the response, we are getting only "Speak " directive only, you can check the "hanelrespone(AvsResponse avsResponse) method in BaseActivity class.".

@rohith-krish where can we find the AvsSetRenderTemplateItem class.?

Thanks

chowdary60 avatar Apr 10 '18 16:04 chowdary60

I have the same problem. I'd like to display cards as well.

jackdaniels92 avatar May 14 '18 11:05 jackdaniels92

Has anyone found a workaround for this?

rohithThammaiah avatar Apr 10 '19 08:04 rohithThammaiah