google-services.json 生成错误的 ios_info bundle_id 字符串

问题描述 投票:0回答:1

我有一个 firebase 项目,里面有一个 android 和一个 ios 应用程序。

  • andoid包名:com.ramobile.myapp
  • ios 捆绑包 ID:com.ramobile.myapp

这是我下载的 google-service.json 的片段:

"appinvite_service": {
      "other_platform_oauth_client": [{
          "client_id": "xxxxxxxx.apps.googleusercontent.com",
          "client_type": 2,
          "ios_info": {
            "bundle_id": "com.ramobile.myapp"
          }
        } ]
    }

有一天我创建/添加一个新的 ios 应用程序,带有新的 bundle id:com.ramobile.newapp, 然后不久之后,我“删除应用程序”,并再次下载 google-service.json,但是 ios_infobundle_id 仍然是最新的(已删除的)ios 应用程序包 ID。

"appinvite_service": {
      "other_platform_oauth_client": [{
          "client_id": "xxxxxxxx.apps.googleusercontent.com",
          "client_type": 2,
          "ios_info": {
            "bundle_id": "com.ramobile.newapp"
          }
        } ]
    }

我已经多次刷新页面和下载文件,但结果还是一样。 正常吗? 应该和第一个一样吧?

有人帮帮我吗?

android ios json firebase plist
1个回答
0
投票

我正在使用带有 firebase 身份验证的 flutter,然后更改了我的包名称/包 ID。 Google Cloud 在 API 和服务 > 凭据下保存了我的旧包 ID。

您必须删除包含旧包 ID 的 OAuth 2.0 客户端 ID。

© www.soinside.com 2019 - 2024. All rights reserved.