From a0c984e3350a4b6ef58e85c815338fa8da4f198a Mon Sep 17 00:00:00 2001 From: Joe Holloway Date: Tue, 9 Apr 2019 10:32:15 -0500 Subject: [PATCH 1/2] Swap GCM endpoints with FCM Fixes https://github.com/geeknam/python-gcm/issues/109 Per deprecation notice at: https://developers.google.com/cloud-messaging/android/android-migrate-fcm#update-server-endpoints --- gcm/gcm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcm/gcm.py b/gcm/gcm.py index d2b8c5e..fcf034a 100644 --- a/gcm/gcm.py +++ b/gcm/gcm.py @@ -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/' class KeyAuth(requests.auth.AuthBase): From bdb4e5fc7c6e29d1e428c3f73f1530503e0c4ae3 Mon Sep 17 00:00:00 2001 From: Joe Holloway Date: Mon, 22 Apr 2019 10:23:53 -0500 Subject: [PATCH 2/2] Fix trailing slash Fix trailing slash in untested pull request to unmaintained library --- gcm/gcm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcm/gcm.py b/gcm/gcm.py index fcf034a..703cbc0 100644 --- a/gcm/gcm.py +++ b/gcm/gcm.py @@ -13,7 +13,7 @@ from urllib.parse import unquote -GCM_URL = 'https://fcm.googleapis.com/fcm/send/' +GCM_URL = 'https://fcm.googleapis.com/fcm/send' class KeyAuth(requests.auth.AuthBase):