rozdoum / social-app-android

Build your social app for Android with the code template that includes the following key features for social networks as likes, comments, posts, image uploads, etc.
Apache License 2.0
453 stars 262 forks source link

Google sign in error: statusCode=CANCELLED, resolution=null #89

Closed tuski closed 5 years ago

tuski commented 5 years ago

At first thank you so much for sharing this application. It will be very helpful for newcomer who are interested building social networking apps.

I have added SHA-1 fingerprint into the firebase and added google-services.json in app folder. Also added the Web client ID in /app/src/main/res/values/constants.xml to “google_web_client_id” property. successfully initializes firebase but could not access google sign in. Please Help :(

GoogleSignInResult result = Auth.GoogleSignInApi.getSignInResultFromIntent(data);

Status{statusCode=CANCELED, resolution=null}

and I got the following log in the console

D/FA: Logging event (FE): user_engagement(_e), Bundle[{firebase_event_origin(_o)=auto, engagement_time_msec(_et)=68534, firebase_screen_class(_sc)=LoginActivity, firebase_screen_id(_si)=-3453596755936333125}] I/FirebasePerformance: Session ID - e8c212a9859c44daa1d0f1ec28cb964e V/FA: Connection attempt already in progress D/FA: Logging event (FE): screen_view(_vs), Bundle[{firebase_event_origin(_o)=auto, firebase_previous_class(_pc)=LoginActivity, firebase_previous_id(_pi)=-3453596755936333125, firebase_screen_class(_sc)=SignInHubActivity, firebase_screen_id(_si)=-3453596755936333123}] V/FA: Connection attempt already in progress V/FA: Connection attempt already in progress V/FA: Activity resumed, time: 2186067 V/FA: Screen exposed for less than 1000 ms. Event not sent. time: 286 V/FA: Connection attempt already in progress V/FA: Activity paused, time: 2186095 D/EGL_emulation: eglMakeCurrent: 0xd1d4c700: ver 3 0 (tinfo 0xe4a318d0) D/FA: Connected to remote service V/FA: Processing queued up service tasks: 5 D/LoginPresenter: SIGN_IN_GOOGLE failed :com.google.android.gms.auth.api.signin.GoogleSignInResult@63ee3e5 D/EGL_emulation: eglMakeCurrent: 0xd1d4c700: ver 3 0 (tinfo 0xe4a318d0) D/FA: Logging event (FE): screen_view(_vs), Bundle[{firebase_event_origin(_o)=auto, firebase_previous_class(_pc)=SignInHubActivity, firebase_previous_id(_pi)=-3453596755936333123, firebase_screen_class(_sc)=LoginActivity, firebase_screen_id(_si)=-3453596755936333125}]

tuski commented 5 years ago

After trying a lot I deleted the app from firebase, google cloud and started from the beginning. This time the app successfully run.

Thanks everyone who are working in this project.