friendlyeats-android icon indicating copy to clipboard operation
friendlyeats-android copied to clipboard

startActivityForResult is depricated and app doesnot sign in

Open rupantar2002 opened this issue 4 years ago • 3 comments

startActivityForResult is depricated and app doesnot sign in

rupantar2002 avatar Jun 23 '21 13:06 rupantar2002

@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?

samtstern avatar Jun 23 '21 14:06 samtstern

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 avatar May 28 '22 17:05 fcat97

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

fcat97 avatar May 29 '22 17:05 fcat97