-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add ability to specify default_web_client_id at runtime #1911
Comments
@edenman thank you for this, I think this is a reasonable feature request. |
This was fixed and released in version |
@samtstern thanks! I don't see any method on |
com.google.firebase:firebase-auth:21.0.1 ...looks like there's a 17.6.0 of play-services-base but even if I force update that library, I still don't see a setter for it? Although the code obfuscation is making it hard to tell. What's the method supposed to be called? |
oh wow is it |
@edenman yep it's You can see here how it's used when you're not using FirebaseUI: |
Step 1: Are you in the right place?
Step 2: Describe your environment
Step 3: Describe the problem:
I'm trying to push a build of my app that is capable of switching between Prod and Staging at runtime. My production API server uses one Firebase project, my staging API server uses a staging Firebase project. Following these instructions, I have managed to get the
FirebaseApp.initializeApp
part of this working, but AuthUI'sGoogleProvider
requires thatdefault_web_client_id
be set in strings.xml. This breaks me because I need to change that value at runtime. It would be great if this value could be provided at runtime.Relevant Code:
ideally something like:
Workaround:
If anybody else hits this: you can remove the Google sign-in option when pointing at your Staging environment.
The text was updated successfully, but these errors were encountered: