We have two cloud projects
project-main
Used for most of our own infrastructure.
project-mobile
Used for firebase and mobile (android).
I'd like configure Google Sign In to use a web client id created for project-main
in order to authorize android clients using GoogleSignInOptions.Builder.requestIdToken(String) at our backend. The app's gms Gradle plugin is pointing to project-mobile
by using the downloaded google-services.json
from firebase. How can this be done?
I found a post titled Working with multiple Firebase projects in an Android app . Unfortunately it did not solve the issue for me. The client fails to authorize at google.
PS: When using the default web client id, authorization works. But this is not what I want - as the default client id is created for project-mobile
.
通过从Firebase控制台配置中删除SHA指纹来解决此问题。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.