AlexaAndroid icon indicating copy to clipboard operation
AlexaAndroid copied to clipboard

Is there are separate flow for requesting an access token from Amazon if the Amazon app is installed?

Open ijdoc opened this issue 8 years ago • 3 comments

Just after finishing integrating the library into my own app, (note that we should also add a note to the documentation for retrieving and including speechutils) I noticed that the integration works well as long as the Amazon app is not already installed (and with a logged user) on the device.

My guess is that when the library tests for active credentials, the active credentials of the installed Amazon app fools the library into thinking credentials have already been obtained, but when using that token (whichever it is) with my app's calls, they fail because I am not the Amazon app to which the token was given.

I need to debug the issue more but wanted to post this in the meantime. The main symptom currently is:

  • If the Amazon app is installed, calls to check for a logged user do not trigger the Amazon web login but do not return AuthorizationCallback.onSuccess either.

ijdoc avatar Mar 29 '17 14:03 ijdoc

I'm not actively writing code for this project, but if you figure out how to make it work and create and submit a pull request I can accept.

willblaschko avatar Mar 29 '17 17:03 willblaschko

ok, no worries... I'll try to track it down but if you have any suggestions do not hesitate to shoot them my way.

ijdoc avatar Mar 29 '17 17:03 ijdoc

I made one attempt at getting this working to support multiple locales more easily. Nothing substantial just yet.

willblaschko avatar Apr 17 '17 21:04 willblaschko