Android Question SHA1 conflict GCP and Firebase

Discussion in 'Android Questions' started by Multiverse app, Sep 12, 2019.

  1. Multiverse app

    Multiverse app Active Member Licensed User

    So I need Firebase Auth in my project, therefore I added my SHA1 in Firebase.
    Now I need to add Google's Translation API Which needs OAUTH.

    As seen in Erel's Tutorial, we need to generate a client ID for this.
    GCP needs SHA1 key too:
    upload_2019-9-12_20-36-0.png






    The problem is, I cannot use the same SHA1 key for firebase and OAUTH
    When I try to add the key to GCP second:
    upload_2019-9-12_20-37-15.png

    when I try to add the key to firebase:
    upload_2019-9-12_20-38-32.png

    So this makes it impossible(?) to use OAuth with firebase auth in the same project?
    Ad far as I know, we can use multiple debug keys in Android Studio, so normally developers do not have any issues.

    unfortunately in B4A, it is not possible to have multiple keys. What is the solution here?
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    The APK is always signed with a single key. It doesn't matter whether you using Android Studio or B4A.
     
  3. Multiverse app

    Multiverse app Active Member Licensed User

    So how can I solve this?
    I took a look around and cannot find any solution
     
  4. Erel

    Erel Administrator Staff Member Licensed User

    The error message tells you that you can omit the SHA-1 for now and read more about how to solve it. Follow that link.
     
  5. Multiverse app

    Multiverse app Active Member Licensed User

    The solution here only explains to delete the SHA1 key from any other firebase projects that are using it.

    No other projects are using the same key, except the same project in GCP.

    If I omit the key i will not be able to use google auth.
     
  6. Erel

    Erel Administrator Staff Member Licensed User

    I can only guess that you are doing something wrong or something that is not supported by Google / Firebase. From B4A and Android side there is nothing that you can do as an APK is always signed by a single key.
     
  7. KMatle

    KMatle Expert Licensed User

    I have a lot of (huge) apps using Google services. Never had issues (except one caused by me :D)
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice