alexa-samples / skill-sample-nodejs-adventure-game

This tool provides an easy to use front-end that allows developers to instantly deploy code for your story, or use the generated code as a starting point for more complex projects.
Apache License 2.0
510 stars 218 forks source link

Behavior for exiting / resuming the skill #9

Open UXVirtual opened 7 years ago

UXVirtual commented 7 years ago

I'm currently testing exiting the skill then resuming where I left off. I can see the currentSceneId and breadcrumbs values in DynamoDB correctly update as I move through the game, however when I type the command exit skill in the Amazon Developer console then type the command begin it resets the saved progress in DynamoDB. Attempting to use the resume skill command at the start doesn't seem to resume where I left off either. I'm assuming that there's some way of getting it to return the AskToRestoreState command response?

UXVirtual commented 7 years ago

I looked into this a bit more last night and it seems this works correctly on the actual Amazon Echo device, but not in the developer console. The console is probably skipping the initial step to launch the skill so it never triggers the logic to remind the user that they have saved progress and ask them if they want to resume.

rejamison commented 7 years ago

I'm afraid you're encountering an issue with the developer console. We're working on a workaround in the project to avoid the issue in our next update.