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

startActivityForResult is depricated and app doesnot sign in #129

Open
rupantar2002 opened this issue Jun 23, 2021 · 3 comments
Open

startActivityForResult is depricated and app doesnot sign in #129

rupantar2002 opened this issue Jun 23, 2021 · 3 comments

Comments

@rupantar2002
Copy link

startActivityForResult is depricated and app doesnot sign in

@samtstern
Copy link
Contributor

@rupantar2002 we have replaced most (but not all) of the startActivityForResult usage in this codelab. Although it is deprecated, it still works.

Can you describe the sign-in error you're getting?

@fcat97
Copy link

fcat97 commented May 28, 2022

I couldn't sign-in either. My localhost address is 127.0.0.1. Should I use this instead of 10.0.2.2?

If I use 10.0.2.2 the sign-in progress takes a long time then fails. But if I use 127.0.0.1, all the process ends in a blink of second but nothing happens..

Changing startActivityForResult to registerActivityForResult doesn't help either.

I'm using Genymotion emulator in Linux.

@fcat97
Copy link

fcat97 commented May 29, 2022

The problem is Cleartext HTTP traffic not permitted. Adding android:usesCleartextTraffic="true" in manifest file solves the problem.

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

No branches or pull requests

4 participants