Skip to content

Releases: decision-labs/fcm

v2.0.0 Breaking “not bad” Release

18 Sep 12:05
f0f400a
Compare
Choose a tag to compare

Breaking Release

What's Changed

  • A refactoring PR of send_v1 method by @Roy-Mao in #104
  • Adds documentation in the README about how to provide FB credentials by @esilvert in #112
  • Use OAuth2 token instead of server key for v1 by @erimicel in #123

New Contributors

Full Changelog: v1.0.8...v2.0.0

fixy-pixy-spider

16 Apr 17:50
76554d5
Compare
Choose a tag to compare
  • caches calls to Google::Auth::ServiceAccountCredentials #103
  • Allow faraday versions from 1 up to 2 #101

What's Changed

New Contributors

Full Changelog: v1.0.7...v1.0.8

Improvements galore! 🎉

21 Feb 13:56
Compare
Choose a tag to compare
  • Fix passing DEFAULT_TIMEOUT to faraday #96
  • Fix issue with get_instance_id_info option params #98
  • Accept any IO object for credentials #95

Huge thanks to @excid3 @jsparling @jensljungblad

https://github.com/decision-labs/fcm#107

What's Changed

New Contributors

Full Changelog: v1.0.6...v1.0.7

HTTP v1 fixed dependency👩🏻‍🍼

26 Nov 03:15
Compare
Choose a tag to compare

This release adds support for send_v1 method that allows sending via HTTP v1. See the official migration guide for more info. This release is somewhat of a work around until the next release will refactor this to use namespace and deprecate this method.

Example the the new version:

fcm = FCM.new(
  API_TOKEN,
  GOOGLE_APPLICATION_CREDENTIALS_PATH,
  FIREBASE_PROJECT_ID
)
message = {
  'topic': "89023", # OR token if you want to send to a specific device
  # 'token': "000iddqd",
  'data': {
    payload: {
      data: {
        id: 1
      }
    }.to_json
  },
  'notification': {
    title: notification.title_th,
    body: notification.body_th,
  },
  'android': {},
  'apns': {
    payload: {
      aps: {
        sound: "default",
        category: "#{Time.zone.now.to_i}"
      }
    }
  },
  'fcm_options': {
    analytics_label: 'Label'
  }
}

fcm.send_v1(message)

v1.0.3 Relax Faraday 😅

03 Jun 17:51
c1bcbfc
Compare
Choose a tag to compare
  • Relaxed the faraday dependency #88

v1.0.1

16 May 10:32
a680135
Compare
Choose a tag to compare

make faraday dependency use pessimistic versioning via ~> 1.0.0

v1.0.0

16 May 09:59
fdf590a
Compare
Choose a tag to compare
  • Supports ruby 2.4 and above
  • faraday dependency fixed to 1.0.0

0.0.7

29 Feb 12:02
Compare
Choose a tag to compare
  • removes httparty as dependency
  • adds faraday

v0.0.6

05 Nov 11:36
Compare
Choose a tag to compare

Fixes httparty dependency version

v0.0.4

04 Nov 15:01
Compare
Choose a tag to compare
update httparty and gem version