Giter VIP home page Giter VIP logo

Comments (8)

gino-m avatar gino-m commented on June 10, 2024

from ground-android.

anandwana001 avatar anandwana001 commented on June 10, 2024

Yes, I added both

from ground-android.

gino-m avatar gino-m commented on June 10, 2024

@anandwana001 Did you create the key manually, or did Android Studio create it for you? If you remove/rename your ~/.android/debug.keystore Android Studio will recreate it for you. Try adding its SHA to Firebase and try again. That will hopefully solve it.

from ground-android.

anandwana001 avatar anandwana001 commented on June 10, 2024

I am using the command keytool -list -v -keystore "$HOME/.android/debug.keystore" -alias androiddebugkey -storepass android -keypass android

Alias name: VALUE
Creation date: 09-Oct-2019
Entry type: PrivateKeyEntry
Certificate chain length: 1
Certificate[1]:
Owner: C=US, O=Android, CN=Android Debug
Issuer: C=US, O=Android, CN=Android Debug
Serial number: 1
Valid from: Wed Oct 09 13:55:34 IST 2019 until: Fri Oct 01 13:55:34 IST 2049
Certificate fingerprints:
         SHA1: VALUE
         SHA256: VALUE
Signature algorithm name: SHA1withRSA (weak)
Subject Public Key Algorithm: 2048-bit RSA key
Version: 1

from ground-android.

gino-m avatar gino-m commented on June 10, 2024

That will show you your existing keys; I was suggesting deleting/renaming your key and letting Android Studio generate a new one. The SHA of the new key would then need to be pasted into Firebase.

from ground-android.

anandwana001 avatar anandwana001 commented on June 10, 2024

Tried, still have the same issue

Alias name: VALUE
Creation date: 11-Mar-2024
Entry type: PrivateKeyEntry
Certificate chain length: 1
Certificate[1]:
Owner: CN=Akshay Nandwana
Issuer: CN=Akshay Nandwana
Serial number: 1
Valid from: Mon Mar 11 20:02:06 IST 2024 until: Fri Mar 05 20:02:06 IST 2049
Certificate fingerprints:
         SHA1: VALUE
         SHA256: VALUE
Signature algorithm name: SHA256withRSA
Subject Public Key Algorithm: 2048-bit RSA key
Version: 1

When I checked the Authentication on Firebase, the User gets registered, but in the app, due to the error thrown, the user is stuck at the Login Screen.

I checked the google-services.json, theGOOGLE_MAPS_API_KEY is not there. Is it a possible reason?

from ground-android.

gino-m avatar gino-m commented on June 10, 2024

@anandwana001 Your key doesn't appear to be created by Android Studio. Mine looks like this:

Alias name: androiddebugkey
Creation date: Jan 24, 2023
Entry type: PrivateKeyEntry
Certificate chain length: 1
Certificate[1]:
Owner: C=US, O=Android, CN=Android Debug
Issuer: C=US, O=Android, CN=Android Debug
Serial number: 1
Valid from: Tue Jan 24 15:48:05 EST 2023 until: Thu Jan 16 15:48:05 EST 2053
Certificate fingerprints:
         SHA1: ***
         SHA256: ***
Signature algorithm name: SHA1withRSA (weak)

If you rename the existing one and build in AS you should get something similar.

from ground-android.

yongsuk44 avatar yongsuk44 commented on June 10, 2024

It seems the issue is not with the SHA1 code but with the following logic, where it's showing an error that it cannot find the Firebase Function.

image

// FirestoreDataStore.kt
  override suspend fun refreshUserProfile() {   
    firebaseFunctions.getHttpsCallable(PROFILE_REFRESH_CLOUD_FUNCTION_NAME).call().await()
  }

I am wondering whether the above code is calling a function in my registered Firebase project through FirebaseFunction, or if it is calling a function registered in the Firebase Datastore managed by Google.

@gino-m, @anandwana001

from ground-android.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.