dpa99c / cordova-plugin-firebasex

Cordova plugin for Google Firebase
MIT License
571 stars 467 forks source link

Firebase config setup in Ionic App #889

Closed javico-dev11 closed 4 months ago

javico-dev11 commented 5 months ago

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

javico-dev11 commented 4 months ago

I think it requires deleting the platform and adding it again for it to work correctly.