So here is my situation, I'm connected to ApplicationA project on firebase console to handle the notification. But I want to listen to a database from ApplicationB project also.
The thing is that I can only have one google-services.json
, I have to choose between one or the other but not both. So, my question is, how can I specify to listen to a database from another app that the one from the google-services.json
.
Since the update, the project link is handled internally by the json. Before the update, I was able to paste the entire link of the database I wanted to be listening to.
Here is the way I'm listening to certain database path currently:
FirebaseDatabase database = FirebaseDatabase.getInstance();
fireActionUpdate = database.getReference("org/" + nameId + "/action");
fireRuleResponse = database.getReference("org/" + nameId + "/notify");
Before it was:
fireActionUpdate = new Firebase("https://yellow.firebaseio.com/org/" + nameId + "/action");
fireRuleResponse = new Firebase("https://yellow.firebaseio.com/org/" + nameId + "/notify");