Fcm Versions Save

Ruby bindings to Firebase Cloud Messaging (FCM) for Android, iOS or Web

v1.0.8

2 years ago
  • caches calls to Google::Auth::ServiceAccountCredentials #103
  • Allow faraday versions from 1 up to 2 #101

What's Changed

New Contributors

Full Changelog: https://github.com/decision-labs/fcm/compare/v1.0.7...v1.0.8

v1.0.7

2 years ago
  • 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: https://github.com/decision-labs/fcm/compare/v1.0.6...v1.0.7

v1.0.6

2 years ago

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

2 years ago
  • Relaxed the faraday dependency #88

v1.0.1

4 years ago

make faraday dependency use pessimistic versioning via ~> 1.0.0

v1.0.0

4 years ago
  • Supports ruby 2.4 and above
  • faraday dependency fixed to 1.0.0

0.0.7

4 years ago
  • removes httparty as dependency
  • adds faraday

0.0.6

5 years ago

Fixes httparty dependency version

v0.0.4

5 years ago