如何为一个Google Login API使用多个iOS捆绑包ID?

时间:2023-01-03 11:02:31

We are trying to integrate Google Login all of our iOS apps, each has a unique bundle ID.

我们正在尝试整合Google登录我们所有的iOS应用,每个应用都有一个唯一的捆绑ID。

I can see the method for creating a new API per app in the IAM console, and I've also visited this link to create the appropriate plist for the iOS app, but I can only seem to attach one Google app to one iOS bundle ID.

我可以看到在IAM控制台中为每个应用程序创建新API的方法,我也访问了此链接以为iOS应用程序创建适当的plist,但我似乎只能将一个Google应用程序附加到一个iOS包ID 。

Is there any way to generate multiple iOS plists (the GoogleServices-Info.plist file) via the Google IAM console, that all use one API key, for each of our iOS apps with unique bundle IDs?

有没有办法通过Google IAM控制台生成多个iOS plist(GoogleServices-Info.plist文件),所有这些都使用一个API密钥,为每个具有唯一捆绑ID的iOS应用程序?

1 个解决方案

#1


2  

The OAuth2 client ID which gets created can only be associated with a single iOS bundle ID. You can view the generated client ID in the Cloud Console for your project (API Manager -> Credentials) and see that it only a single field can be set for the bundle ID.

创建的OAuth2客户端ID只能与单个iOS捆绑包ID相关联。您可以在项目的云控制台中查看生成的客户端ID(API Manager - >凭据),并且可以看到只能为捆绑ID设置单个字段。

You must generate a new Client ID for each of your unique iOS apps. You may find this faster to do directly from the Cloud Console (click on 'Create credentials' -> 'OAuth client ID' -> 'iOS', then click on the newly created key and 'Download plist' for each one).

您必须为每个独特的iOS应用生成新的客户端ID。您可以更快地从云控制台中找到这一点(单击“创建凭据” - >“OAuth客户端ID” - >“iOS”,然后单击新创建的密钥并为每个密钥单击“下载plist”)。

#1


2  

The OAuth2 client ID which gets created can only be associated with a single iOS bundle ID. You can view the generated client ID in the Cloud Console for your project (API Manager -> Credentials) and see that it only a single field can be set for the bundle ID.

创建的OAuth2客户端ID只能与单个iOS捆绑包ID相关联。您可以在项目的云控制台中查看生成的客户端ID(API Manager - >凭据),并且可以看到只能为捆绑ID设置单个字段。

You must generate a new Client ID for each of your unique iOS apps. You may find this faster to do directly from the Cloud Console (click on 'Create credentials' -> 'OAuth client ID' -> 'iOS', then click on the newly created key and 'Download plist' for each one).

您必须为每个独特的iOS应用生成新的客户端ID。您可以更快地从云控制台中找到这一点(单击“创建凭据” - >“OAuth客户端ID” - >“iOS”,然后单击新创建的密钥并为每个密钥单击“下载plist”)。