Skip to content

Simple FCM (Firebase Cloud Messaging) Gem for sending Push Notifications to iOS as well as Android devices

Notifications You must be signed in to change notification settings

vipin08/Python_fcm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Notify-fcm

Simple FCM (Firebase Cloud Messaging) Gem for sending Push Notifications to iOS as well as Android devices

Installation

$ pip install python_fcm

Requirements

  • One of the following, tested Ruby versions:
2.7.x
3.6.x

Usage

  • Example sending notifications:
from python_fcm import Fcm

fcm = Fcm("API-KEY")

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

fcm.title="My Title"                  # Set Title

fcm.body ="My Body"                   # Set Body

fcm.color = "#000000"                 # Set Colour Code

fcm.sound = "default"                 # Set your Notification sound

response = fcm.send(device_token)     # Send Notification

MIT License

  • Copyright (c) 2017 Vipin Kumar. See LICENSE.txt for details.

Thanks and Support us

About

Simple FCM (Firebase Cloud Messaging) Gem for sending Push Notifications to iOS as well as Android devices

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages