'Changing Fire Store project for Push Notification. What need to be changed in react native project?

I am using Firebase Cloud Messaging features. At the start of the project I created a project in firebase to test and connect with my react native app.

When I created a project firebase give me google-services.json file

{
  "project_info": {
    "project_number": "123",
    "project_id": "abc-abc",
    "storage_bucket": "abc-abc.appspot.com"
  },
  "client": [
    {
      "client_info": {
        "mobilesdk_app_id": "...",
        "android_client_info": {
          "package_name": "com.abc"
        }
      },
      "oauth_client": [
        {
          "client_id": "...",
          "client_type": 3
        }
      ],
      "api_key": [
        {
          "current_key": "..."
        }
      ],
      "services": {
        "appinvite_service": {
          "other_platform_oauth_client": [
            {
              "client_id": "...",
              "client_type": 3
            }
          ]
        }
      }
    }
  ],
  "configuration_version": "1"
}

Inside the json file I need to fill the react native app package name from AndroidManifest.xml

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.abc">

So what happen is that I now get the another google-services.json file from the client.

So do I need to change only in androidManifest.xml, package from abc to def. Which area also need to change?

Is there any place to change for storage bucket in react native? Because I notice these two are not the same



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source