diff --git a/README.md b/README.md index a8e05bd..ea5554a 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Fcmpush [![Build Status](https://travis-ci.org/miyataka/fcmpush.svg?branch=master)](https://travis-ci.org/miyataka/fcmpush) [![Gem Version](https://badge.fury.io/rb/fcmpush.svg)](https://badge.fury.io/rb/fcmpush) +# Fcmpush [![Build Status](https://github.com/miyataka/fcmpush/actions/workflows/test.yml/badge.svg)](https://github.com/miyataka/fcmpush/actions) [![Gem Version](https://badge.fury.io/rb/fcmpush.svg)](https://badge.fury.io/rb/fcmpush) Fcmpush is an Firebase Cloud Messaging(FCM) Client. It implements [FCM HTTP v1 API](https://firebase.google.com/docs/reference/fcm/rest/v1/projects.messages), including **Auto Refresh** access_token feature, and batch request!! This gem supports HTTP v1 API only, **NOT supported [legacy HTTP protocol](https://firebase.google.com/docs/cloud-messaging/http-server-ref)**. diff --git a/lib/fcmpush/client.rb b/lib/fcmpush/client.rb index 2548f2b..1ef8945 100644 --- a/lib/fcmpush/client.rb +++ b/lib/fcmpush/client.rb @@ -122,7 +122,7 @@ def v1_authorized_header(headers) def legacy_authorized_header(headers) headers.merge('Content-Type' => 'application/json', 'Accept' => 'application/json', - 'Authorization' => "Bearer key=#{server_key}") + 'Authorization' => "Bearer #{server_key}") end def exception_handler(response) diff --git a/lib/fcmpush/version.rb b/lib/fcmpush/version.rb index 1cd67e4..79f5d0f 100644 --- a/lib/fcmpush/version.rb +++ b/lib/fcmpush/version.rb @@ -1,3 +1,3 @@ module Fcmpush - VERSION = '1.4.0'.freeze + VERSION = '1.4.1'.freeze end