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

Pra*_*han 5 android json plist ios firebase

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

  • 安卓包名称: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"
          }
        } ]
    }
Run Code Online (Sandbox Code Playgroud)

有一天,我创建/添加一个新的 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"
          }
        } ]
    }
Run Code Online (Sandbox Code Playgroud)

我刷新了页面并多次下载文件,但结果仍然相同。正常吗?应该和第一个一样吧?

有人帮帮我好吗?

小智 4

我使用 flutter 进行 firebase 身份验证,然后更改了我的包名称/包 id。Google Cloud 将我的旧捆绑包 ID 保存在 下Google Cloud Console > APIs & Services > Credentials,可在此处访问:

https://console.cloud.google.com/apis/credentials

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