Releases: decision-labs/fcm
Releases · decision-labs/fcm
v2.0.0 Breaking “not bad” Release
Breaking Release
- Changelog: https://github.com/decision-labs/fcm?tab=readme-ov-file#200
- PR: #123
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
- @Roy-Mao made their first contribution in #104
- @esilvert made their first contribution in #112
- @erimicel made their first contribution in #123
- @aap17
Full Changelog: v1.0.8...v2.0.0
fixy-pixy-spider
- caches calls to
Google::Auth::ServiceAccountCredentials
#103 - Allow
faraday
versions from 1 up to 2 #101
What's Changed
- Cache authorizer to avoid IO end by @rkyrychuk in #103
- Update fcm.gemspec by @qgzvcyxjfr in #101
New Contributors
- @rkyrychuk made their first contribution in #103
- @qgzvcyxjfr made their first contribution in #101
Full Changelog: v1.0.7...v1.0.8
Improvements galore! 🎉
- 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
- Switch to GitHub Actions by @excid3 in #93
- Accept any IO object for credentials by @excid3 in #94
- Fix issue with
get_instance_id_info
option params by @jsparling in #98 - Make use of the timeout constant by @jensljungblad in #96
New Contributors
- @excid3 made their first contribution in #93
- @jsparling made their first contribution in #98
- @jensljungblad made their first contribution in #96
Full Changelog: v1.0.6...v1.0.7
HTTP v1 fixed dependency👩🏻🍼
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 😅
- Relaxed the faraday dependency #88