is this project FCM-ready?
fuzzyami opened this issue · 1 comments
hello! and thank you for this useful repo. I'd like to know whether it would be possible to use this repo to create an XMPP connection with Google's FCM servers.
Unlike the (soon to be obsolete) GCM servers, the FCM servers require some authentication (see: https://firebase.google.com/docs/cloud-messaging/auth-server):
The connection has two important requirements:
You must initiate a Transport Layer Security (TLS) connection. Note that FCM doesn't currently support the STARTTLS extension.
FCM requires a SASL PLAIN authentication mechanism using <your_FCM_Sender_Id>@gcm.googleapis.com (FCM sender ID) and the Server key as the password. These values are available in the Cloud Messaging tab of the Firebase console Settings pane.
and of course, this connection would open over their ports (5235/5236).
is this repo FCM-ready? if not, roughly what are the required changes?
STARTTLS and SASL PLAIN are supported, so it seems this library should just support it.
Probably you already figured that out in the >5 years (if FCM is still a thing, I don't know much about android).
So I'll close this issue.