Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not connect to server #21

Open
MartinPerry opened this issue Oct 10, 2023 · 4 comments
Open

Could not connect to server #21

MartinPerry opened this issue Oct 10, 2023 · 4 comments

Comments

@MartinPerry
Copy link

MartinPerry commented Oct 10, 2023

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
Copy link
Owner

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

@hermitdemschoenenleben
Copy link

@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
Copy link
Owner

@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
Copy link

ok, thanks for the reply!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants