android FCM, how to work with more than one FCM projects in a app
31 views
Skip to first unread message
Lanny Ford
unread,
Mar 15, 2023, 2:45:07 PM3/15/23
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Firebase Google Group
In one android app, it has dependencies on some libraries and the library may have integrated with its own FCM project (should have its own pushtoken, and and its own backend to send the push against the respected pushtoken).
So each library has its own goole-services.json generated from its FCM project. and has its own token listener, e.g. ``` class Proj_x_FirebaseMessagingService : FirebaseMessagingService {
public void onNewToken(String s) { ... } } ```
But when run the app only one library gets the FCM pushtoken.
There is also [use multiple projects in your application][2] But not really sure how to use it. Especially if it requires change inside the depended libraries.
How to work with multiple FCM projects in one app?