FirebaseExtended / firebase-video-samples

This repository contains sample code for some of the videos on the Firebase YouTube channel.
https://www.youtube.com/c/firebase
Apache License 2.0
113 stars 114 forks source link

Auth Sign In With Google Notes sample app doesn't work #76

Closed LyyHua closed 1 week ago

LyyHua commented 1 week ago

Expected Behavior

A fully functional note app but most importantly a working google sign in button with latest firebase google auth function (since the docs aren't that helpful)

Actual Behavior

The app just indefinitely loading till forever. I did add my own google-service.json, add my app SHA-1 to firebase and also add a default_web_client_id but it still doesn't work image_2024-09-12_004011599

Steps to Reproduce the Problem

  1. Download the android Note project from the fundamentals/android/auth-sign-in-with-google/Notes.
  2. Link the android project to firebase project. Get started on authentication in firebase and add google sign in as an option
  3. Add a default_web_client_id (after add firebase google sign in) to the strings.xml in the res folder. Get the app SHA-1 from gradle app/Tasks/Android/signingReport and add to firebase. (i already also add firebase sdk just to be sure).
  4. Build and run the project to see it is staying at splash screen indefinitely

Specifications

LyyHua commented 1 week ago

nevermind i figure it out