aiofcm icon indicating copy to clipboard operation
aiofcm copied to clipboard

Could not connect to server

Open MartinPerry opened this issue 1 year ago • 4 comments

I have used Basic Usage code to test FCM notifications for Android.

I have filed API key and device token and also changed sender_id. However, when I run the example, I got:

Could not connect to server:
Could not send notification A-B-C-D-E due to connection problem

There is no exception or message what failed after Could not connect to server. I have also tried to change port to FCMXMPPConnection.FCM_PORT = 5236 (which should be some testing port), but the outcome remains the same.

I am using Firebase Cloud Messaging API (V1)

MartinPerry avatar Oct 10 '23 08:10 MartinPerry

Seems like Google stopped supporting XMPP protocol: https://firebase.google.com/docs/cloud-messaging/xmpp-server-ref

Fatal1ty avatar Oct 17 '23 16:10 Fatal1ty

@Fatal1ty does this mean that this project is obsolete? We're using it to send push messages to app users and for some reason, everything still works for us

hermitdemschoenenleben avatar Oct 19 '23 11:10 hermitdemschoenenleben

@hermitdemschoenenleben

According to the documentation it is going to stop working in July 2024. Migration guide can be found here. If someone wants to contribute and add support for the new protocol, it would be great.

Fatal1ty avatar Oct 19 '23 13:10 Fatal1ty

ok, thanks for the reply!

hermitdemschoenenleben avatar Oct 19 '23 15:10 hermitdemschoenenleben