Search code examples
firebasefluttergoogle-cloud-firestoreoauth-2.0google-authentication

Firebase/Flutter google-services.json conflicts


After I lost my access credentials to my old firebase account (rookie mistake I know but things happen!) that already has Google Auth enabled and linked with the SHA1 fingerprint I set up a new account and enabled the Google Auth using SHA256 fingerprint this time because it wouldn't let me use the same SHA1 and the same package name twice then I switched the files google-services.json and GoogleService-Info.plist.

When I tried to test adding a document to a collection in firestore, I get no errors or warnings in the console but the firestore console doesn't show the added documents as well, it does not seem that there is something wrong with the code.

My question is how to know if there are any conflicts what-so-ever? is there some kind of way to know which account is currently linked to the app ?


Solution

  • If your project is NOT listed on Google Play Store AND the package is still NOT that important in your work flow create a new project with other package name and reset your package name across the files in your flutter project as you would normally do