From c869b1a3f2764a17584d57a9e476148aee1bd0df Mon Sep 17 00:00:00 2001 From: Rick Pernikoff Date: Fri, 11 Nov 2016 16:31:03 -0600 Subject: [PATCH] recover_notification_key should be a GET request, not a POST currently this method fails with a 400 --- lib/fcm.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/fcm.rb b/lib/fcm.rb index e7cb660..1f7fbfb 100644 --- a/lib/fcm.rb +++ b/lib/fcm.rb @@ -129,7 +129,7 @@ def recover_notification_key(key_name, project_id) response = nil for_uri(GROUP_NOTIFICATION_BASE_URI) do - response = self.class.post('/notification', params.merge(@client_options)) + response = self.class.get('/notification', params.merge(@client_options)) end build_response(response) end