- Clone repo
- Install dependencies:
npm i
- Create the
config/local.json
file using this command:
$ echo '{\n "serverKey": "",\n "device": ""\n}' > config/local.json
- Replace "serverKey" and "device" in
config/local.json
with the real values. - Run
node index
🙌
You can obtain serverKey from your FCM console Device is the FCM token linked to the pshical device