Firebase Cloud Messaging with MatriX XMPP SDK

We get a lot of requests on howto use the MatriX XMPP SDK with Google Firebase Cloud Messaging. The following are the settings for your XmppClient object The XMPP domain is: gcm.googleapis.com The hostname is: fcm-xmpp.googleapis.com It looks like there are no SRV records in place, this is why you need to set the hostname manual and disable SRV record lookups Firebase does not support XMPPs StartTls feature and requires to initiate a TLS connection. This is how we have done it in the old days when the protocol still was called Jabber. The OldStyleSsl property takes care of this in MatriXs XmppClient. Firebase is using a non standard XMPP port, because no SRV records are in place we have to set port 5236 manual in the code the username is your Firebase Sender Id and the password is your server key. You find them in the Firebase portal under Settings => Cloud Messagging the contact list and presence feature is not require. So we can disable it by setting AutoRoster and AutoPresence to false XmppClient xmppClient = new XmppClient { XmppDomain = gcm.googleapis.com , Hostname = fcm-xmpp.googleapis.com , Port = 5236, ResolveSrvRecords = false, OldStyleSsl = true, Username = YOUR_FIREBASE_SENDER_ID , Password = YOUR_FIREBASE_SERVER_KEY , AutoRoster = false, AutoPresence = false }; xmppClient.Open(); You can find a basic example also here in our GIT repository:https://gitlab.com/matrix-xmpp/samples/tree/master/csharp/FirebaseClient See also: https://firebase.google.com/docs/cloud-messaging/server#implementing-the-xmpp-connection-server-protocol

zum Artikel gehen

MatriX vNext 2.0 released

we are thrilled to announce MatriX vNext 2.0 main changes in 2.0 are: minor API changes which force major version bump (semver) Direct TLS support (XEP-0368) netstandard 2.0 support new NameResolver wich allows to specify IP addresses of the XM

zum Artikel gehen

XmppDotNet announcement

I want to announce the availability of the XmppDotNet XMPP library. XmppDotNet is the new name and next generation of our MatriX vNext XMPP library. Why changing the name? It was never intended to keep vNext in the name forever. And there is a lot

zum Artikel gehen

MatriX XMPP SDK available for .NET Core

The MatriX XMPP SDK is also available for the .NET Core now. You can get it from NuGet here: https://www.nuget.org/packages/MatriX.NetCore/ It passed all our internal tests and QA, but its still marked as a pre-release until we collected some more f

zum Artikel gehen

XMPP websocket connection manager

For a new project I am working on (more to be announced) I was looking for a standalone websocket connection manager. Because still many public and private XMPP servers offer only the TCP transport or BOSH. There are already existing projects webso

zum Artikel gehen

Introducing MatriX vNext

We are thrilled to announce the next generation of the MatriX XMPP libraries. 15 years elapsed already since we started our first .NET/c# XMPP library agsXMPP with .NET 1.0. Our XMPP libraries and the .NET technologies had many major evolutions over the

zum Artikel gehen