Open rupantar2002 opened 3 years ago
@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?
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.
The problem is Cleartext HTTP traffic not permitted. Adding android:usesCleartextTraffic="true"
in manifest file solves the problem.
startActivityForResult is depricated and app doesnot sign in