This tool allows you to send a notification to an android phone directly from the command line from your linux system.
libcurl dev library
unzip tool
make all
make all-debian
fcml [options]
Options are:
- -t Notification Title or (--title=)
- -m Notification Message or (--message=)
- -s Token Device or (--tokendevice=)
- -k Server Key or (--serverkey=>)
- -d Debug Mode or (--debug=1)
- -f Path of the Configuration File or (--configuration=)
The structure of configuration file is:
[general]
apiserver={apiserver}
device={device}
{apiserver} is the server key by Firebase Cloud Messaging
Server Key can be found in:
- Firebase project settings
- Cloud Messaging
- then copy the server key
{device} is the token Device
fcml outputs JSON data to stdout.
fcml -f /etc/fcml.conf -t "Hello Title" -m "Hello Message"
or
fcml -t "Hello Title" -m "Hello Message" -s "TokenDevice" -k "ServerKey"