user2746732
user2746732

Reputation: 139

Unable to receive XMPP upstream messages after FCM migration

I have my XMPP server which was working with GCM. I upgraded to FCM as per google says though I am able to receive notifications from FCM notification console, not able to receive any upstream messages with FireBaseMessaging.send() ... If any one has done this migration please help.

Note : I have a XMPP server which was working and able to receive upstream messages via GCM. (After migration to FCM it is not receiving any messages even though the end points are changed. Am i missing anything from docs)

Upvotes: 0

Views: 487

Answers (2)

user2746732
user2746732

Reputation: 139

This is fixed ! while using both (GCM, FCM) dependency in my project I was using a string resource default-project_id from GCM dependency. I now removed and replaced that with the project_id and it is fixed. So endpoint change is not mandatory.

Upvotes: 1

KENdi
KENdi

Reputation: 7781

Make sure you update the server endpoints. Note that the new FCM version of gcm-http.googleapis.com/gcm/ is fcm.googleapis.com/fcm/ (without "http"):

Change GCM endpoint

gcm-xmpp.googleapis.com

to FCM endpoint

fcm-xmpp.googleapis.com

source: Migrate a GCM Client App for Android to Firebase Cloud Messaging

For more information, Check this Upstream message syntax for FCM and how to send Upstream messages on Android.

Upvotes: 0

Related Questions