We have an app connected to default Firebase project. For Notifications, we use a Legacy (secondary) Firebase project.
I have figured out how to connect to secondary Firebase server, Auth to read from Database.
For push notifications, currently, I am using the default Firebase project generated token. But now, I am trying to see if I can generate a registration token for the secondary Firebase project so I can use the Legacy project for Push notifications.
Since FirebaseInstanceIdService
is where the tokens are generated, I feel it's tied to the default Firebase service which is read from services JSON file. I still would like to keep the default JSON service file since a lot of APIs are connected using the default Firebase account.
Any idea to use the secondary Firebase project to generate token?