Skip to content

Send Firebase Cloud Push Messages easy and simple for Web, Android and iOS

License

Notifications You must be signed in to change notification settings

MakarovCode/FrmMercury

Repository files navigation

FrmMercury

Send Firebase Cloud Push Messages easy and simple for Android and iOS.

Installation

Add this line to your application's Gemfile:

gem 'frm_mercury'

And then execute:

$ bundle

Or install it yourself as:

$ gem install frm_mercury

Usage

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)")

About

Send Firebase Cloud Push Messages easy and simple for Web, Android and iOS

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published