Small script to trigger an FCM push notification to a specific device or channel.
yarn
-
Update
.env
file with yourSERVER_KEY
which you can get from your firebase console Project Settings > Cloud Messaging. -
Run
yarn start
-
Wait for notification to arrive on device...