Skip to content

A simple gem for sending push notifications in Android and iOS devices

License

Notifications You must be signed in to change notification settings

sachin1812/pusher_fcm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

pusher_fcm

A simple gem for sending push notifications in Android and iOS devices

Installation

$ gem install pusher_fcm

or in your Gemfile just include it:

gem 'pusher_fcm'

Requirements

One of the following, tested Ruby versions:

2.0.0
2.1.9
2.2.5
2.3.1

Usage

Example sending notifications:

require 'pusher_fcm'

fcm = PUSHER_FCM.new("API-KEY")

device_token= ["xxxxxxxx", "xxxxxxx"] # an array of one or more client device tokens

fcm.title="My Title"

fcm.body ="My Body"

response = fcm.send(device_token)

MIT License

  • Copyright (c) 2017 Sachin Singh. See LICENSE.txt for details.

Thanks

About

A simple gem for sending push notifications in Android and iOS devices

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published