Skip to content

masaar/limp_gateway_fcm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LIMP Gateway for Firebase Cloud Messaging (FCM)

This repo is a LIMP Package for the sole purpose of integrating FCM into LIMP apps using LIMP Gateways.

How-to

  1. Clone this repo into your LIMP modules folder.
  2. Add following to your app package config:
'vars':{
	'fcm':{'token':'YOUR_FCM_TOKEN_HERE'}
}
  1. FCM gateway requires following args:
    1. registration_id: Target device registration identifier. Type str.
    2. message_title: Message title. Type str.
    3. message_body: Message body. Type str.
    4. data_message: Additional payload data to be sent with the message. Type dict.
  2. FCM gateway accepts optional arg, namely fcm_auth, replicating fcm value in vars Config Attr for dynamic FCM API credentials.
  3. Use FCM gateway using LIMP Gateway Controller:
from gateway import Gateway

Gateway.send(gateway='fcm', registration_id=registration_id, message_title=message_title, message_body=message_body, data_message=data_message)

About

LIMP Gateway for Firebase Cloud Messaging (FCM)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages