'How to change package name for FireStore Cloud Message recognition?

I am testing Firebase Cloud Messaging. What happen is that at the start of the react native project. The package name is com.abc

So at the start of the project I made a project in firebase and use com.abc.

its working fine

Now I need to passed over to the client but they make the firestore with the package name com.def

So I changed the setting in my project

**

I've renamed the project' subfolder from: "android/app/src/main/java/MY/APP/OLD_ID/" to: "android/app/src/main/java/MY/APP/NEW_ID/"

Then manually switched the old and new package ids:
In: android/app/src/main/java/MY/APP/NEW_ID/MainActivity.java:
package MY.APP.NEW_ID;

In android/app/src/main/java/MY/APP/NEW_ID/MainApplication.java:
package MY.APP.NEW_ID;

In android/app/src/main/AndroidManifest.xml:
package="MY.APP.NEW_ID"

And in android/app/build.gradle:
applicationId "MY.APP.NEW_ID"

In android/app/BUCK:
android_build_config(
  package="MY.APP.NEW_ID"
)

android_resource(
  package="MY.APP.NEW_ID"
)

Gradle' cleaning in the end (in /android folder):
./gradlew clean

**

I made these changes and rebuilt but the project won't receive messages from the new store. Where should I change more?



Sources

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

Source: Stack Overflow

Solution Source