A web service for Push Notifications.
Currently, only Web pushes are supported.
- Copy
.env.exampleto.env - generate VAPID keys via
npx web-push generate-vapid-keysand set Public Key toPUBLIC_VAPID_KEYand Private Key toPRIVATE_VAPID_KEYin.envfile. The Public Key value should be the same to what is used in sama-client - set your Firebase app name in
FCM_APP_NAMEenv and Apple keys inAPN_KEY_ID,APN_TEAM_IDenvs. Also provideAPN_IS_PRODUCTIONenv. - put the key files to the
.certsfolder, rename the files tofirebase-sama-project-key.jsonandapns-sama-project-key.json - make sure that
SAMA_PUSH_QUEUE_NAMEmatches the variableSAMA_NATIVE_PUSH_QUEUE_NAMElocated in.envof 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!