HOW TO SEND FCM NOTIFICATION TO SAME ANDROID APP FROM DIFFERENT ORGANISATION PROJECT

92 views
Skip to first unread message

Bipul Kumar

unread,
Feb 5, 2024, 10:48:25 AM2/5/24
to Firebase Google Group
Hi Everyone,
I am trying to send notification on my android app from different orgniosation project setup.For example I have my own FCM setup on my app and server for sending the notification. Now I also want a third party SDK in my app from where my app can also receive notification.  So it's one app with multiple FCM project.

I have tried FirebaseOptions for this. But FirebaseMesssging class can not be initialised using an FirebaseOptions parameter in it. example below. Any idea how can we do this?
FirebaseMessaging devMessaging = FirebaseMessaging.getInstance(devApp);


-- Datacultr Confidential --

The content of this message is confidential. If you have received it by mistake, please inform us by an email reply and then delete the message. It is forbidden to copy, forward, or in any way reveal the contents of this message to anyone. The integrity and security of this email cannot be guaranteed over the Internet. Therefore, the sender will not be held liable for any damage caused by the message.



Arthur Thompson

unread,
Feb 26, 2024, 4:03:52 PM2/26/24
to fireba...@googlegroups.com
Hi,

Sorry for the confusion you may have experienced here. Older deprecated versions FCM SDKs did allow you to initialize multiple instances of FCM within a single app. This is no longer supported.

Recommended versions of the FCM SDKs use the default Firebase App / project initialized for the app instance. Only the default Firebase project can be used to send to its apps.

I hope this clears things up,
Arthur.

--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/edd4844c-efd6-4d27-b7e0-6d21e42b9ec4n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages