firebase / friendlyeats-android

Cloud Firestore Android codelab
https://codelabs.developers.google.com/codelabs/firestore-android
Apache License 2.0
261 stars 156 forks source link

startActivityForResult is depricated and app doesnot sign in #129

Open rupantar2002 opened 3 years ago

rupantar2002 commented 3 years ago

startActivityForResult is depricated and app doesnot sign in

samtstern commented 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?

fcat97 commented 2 years ago

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 commented 2 years ago

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