Fatal1ty / aiofcm

An efficient Firebase Cloud Messaging Client Library for Python/asyncio
Apache License 2.0
34 stars 19 forks source link

Could not connect to server #21

Open MartinPerry opened 1 year ago

MartinPerry commented 1 year ago

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)

Fatal1ty commented 1 year ago

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

hermitdemschoenenleben commented 1 year ago

@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

Fatal1ty commented 1 year ago

@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.

hermitdemschoenenleben commented 1 year ago

ok, thanks for the reply!