A web service for Push Notifications.
Currently, only Web pushes are supported.
- Copy
.env.example
to.env
- generate VAPID keys via
npx web-push generate-vapid-keys
and set Public Key toPUBLIC_VAPID_KEY
and Private Key toPRIVATE_VAPID_KEY
in.env
file. The Public Key value should be the same to what is used in sama-client - set your Firebase app name in
FCM_APP_NAME
env and Apple keys inAPN_KEY_ID
,APN_TEAM_ID
envs. Also provideAPN_IS_PRODUCTION
env. - put the key files to the
.certs
folder, rename the files tofirebase-sama-project-key.json
andapns-sama-project-key.json
- make sure that
SAMA_PUSH_QUEUE_NAME
matches the variableSAMA_NATIVE_PUSH_QUEUE_NAME
located in.env
of your server - run
npm install
- run
npm run start
There are also other components. Make sure to check Deploying SAMA chat server stack: a comprehensive guide
Any thoughts, feedback is welcome! Please create a GitHub issue for any feedback you have.
Want to support us with some coffee?. Will be much appreciated!