Send Firebase Cloud Push Messages easy and simple for Android and iOS.
Add this line to your application's Gemfile:
gem 'frm_mercury'
And then execute:
$ bundle
Or install it yourself as:
$ gem install frm_mercury
First create an frm_mercury.rb in yours config/initializers
require 'frm_mercury'
FrmMercury.configure do |config|
config.api_key = "Your Api Key From Firebase console"
end
Then to send a message...
FrmMercury::Sender.send("Device FCM token as String or many tokens as Array", "Some title", "Some body message", "sound.mp3 (Leave empty for default)", "Hash in case you want to send extra info (optional)")