Skip to content

Commit

Permalink
recover_notification_key should be a GET request, not a POST
Browse files Browse the repository at this point in the history
currently this method fails with a 400
  • Loading branch information
rickpern authored Nov 11, 2016
1 parent c0f0093 commit c869b1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/fcm.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c869b1a

Please sign in to comment.