Firebase config setup in Ionic App

Hello everyone, I have an Ionic project, I am using ionic cordova plugin add cordova-plugin-firebasex to receive real-time notifications using Firebase Messaging Cloud.

As indicated in the plugin documentation, the google-services.json file must be added to the root of the project for it to work correctly, but the problem is that I have several projects in Firebase, it is assumed that changing the google-services file. json of the corresponding firebase project, the application should connect to the appropriate project, but after compiling and running the app, it connects to a project that is not the one assigned in the .json file, perhaps something similar has happened to someone?

Greetings

Apparently the android platform needs to be removed and re-added to compile again, that fixed the issue for now.
I hope it helps someone else.