This repo is a LIMP Package for the sole purpose of integrating FCM into LIMP apps using LIMP Gateways.
- Clone this repo into your LIMP
modules
folder. - Add following to your app package config:
'vars':{
'fcm':{'token':'YOUR_FCM_TOKEN_HERE'}
}
- FCM gateway requires following args:
registration_id
: Target device registration identifier. Typestr
.message_title
: Message title. Typestr
.message_body
: Message body. Typestr
.data_message
: Additional payload data to be sent with the message. Typedict
.
- FCM gateway accepts optional arg, namely
fcm_auth
, replicatingfcm
value invars Config Attr
for dynamic FCM API credentials. - 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)