Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Got problems when running the app #11

Closed
lengjunxiaogudy opened this issue Oct 25, 2017 · 5 comments
Closed

Got problems when running the app #11

lengjunxiaogudy opened this issue Oct 25, 2017 · 5 comments

Comments

@lengjunxiaogudy
Copy link

hello raj10071997,
It is my honor to study your project. When i run the app, the mainactivity and the browser take turns showing in front of screen and i just cannot stop them unless i kill the process. It must be wrong somewhere. If i want to run the app, do i only need to register the api_key.txt and the security profile? I guess that i made some mistakes during creating the api key and security profile. For example, i used my own PC's MD5 and SHA256 and changed PRODUCT_ID in mainactivity with my own. What else should i pay attention to? Thanks for your help!

@raj10071997
Copy link
Owner

Have you registered your security profile for Login with Amazon?

@lengjunxiaogudy
Copy link
Author

Yes. Should i completely follow the steps https://github.com/alexa/alexa-avs-sample-app/wiki/Create-Security-Profile
to create a security profile? The app runs in android phones, so i just choose "application", not "device".

@raj10071997
Copy link
Owner

You can choose any option as an android phone can also be treated as a device. If you are just creating a security profile as given in the above link then it is possible that you have not enabled your security profile although you have created it. Here's the link. If you have enabled it, then it might be because of that "application" option. Try with "device" option

@lengjunxiaogudy
Copy link
Author

Thank you for your reply. I have enabled the security profile after i created it. Logcat shows that "ThirdPartyServiceHelper: Returning no service to use" and some information like that. Compared with the app, amazon official login_with_amazon example shall open a website for user to fill in account information or click back button. It seems like that, the app is automatically, continously checking my account information but gives me no chance to input anything. So, it takes turns showing mainactivity and the login website in front of screen.

@raj10071997
Copy link
Owner

raj10071997 commented Nov 2, 2017

Sorry for the late reply. The app is not filling your info automatically. And yes according to official login_with_amazon , the website has to be opened in a browser as it implemented in the login with amazon library. If it is happening with you then please send me a screenshot or a gif of the issue so that I can better understand the issue and improve my app for that problem. Thanks in advance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants