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

Swap GCM endpoints with FCM #126

Merged
merged 2 commits into from
Apr 23, 2019
Merged

Swap GCM endpoints with FCM #126

merged 2 commits into from
Apr 23, 2019

Conversation

jholloway7
Copy link

@coveralls
Copy link

Coverage Status

Coverage remained the same at 89.13% when pulling a0c984e on jholloway7:patch-1 into b247d4a on geeknam:develop.

1 similar comment
@coveralls
Copy link

Coverage Status

Coverage remained the same at 89.13% when pulling a0c984e on jholloway7:patch-1 into b247d4a on geeknam:develop.

@coveralls
Copy link

coveralls commented Apr 9, 2019

Coverage Status

Coverage remained the same at 89.13% when pulling bdb4e5f on jholloway7:patch-1 into b247d4a on geeknam:develop.

gcm/gcm.py Outdated
@@ -13,7 +13,7 @@
from urllib.parse import unquote


GCM_URL = 'https://gcm-http.googleapis.com/gcm/send'
GCM_URL = 'https://fcm.googleapis.com/fcm/send/'
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You don't need the trailing slash. It won't work with the slash

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please test?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry it wasn't tested because I replaced the library in my stack. I was just trying to be helpful to the maintainer. I updated the pull request to remove the trailing slash, but doesn't look like it will be merged any time soon regardless.

Fix trailing slash in untested pull request to unmaintained library
@LithiumSheep
Copy link

While this will work for the time being, you should probably think about using a new library that will receive support for FCM features going forward.

See https://github.com/olucurious/PyFCM or https://github.com/firebase/firebase-admin-python

@LithiumSheep
Copy link

If you want to fork this library and shim it to avoid server refactoring, go for it but I'd hesitate to push these changes upstream since the library is called "python-gcm".

@jholloway7
Copy link
Author

If you want to fork this library and shim it to avoid server refactoring, go for it but I'd hesitate to push these changes upstream since the library is called "python-gcm".

Good note, this library should probably die on the vine. This only buys some time after the endpoint is removed next week. I imagine firebase-admin will be the better maintained Python library going forward short of just using the new HTTP API directly.

@geeknam geeknam merged commit 7701276 into geeknam:develop Apr 23, 2019
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

Successfully merging this pull request may close these issues.

6 participants