Documentation · Installing the server · Push

Push

How the server wakes phones: through Veydan network push, with no push, or with your own Firebase key.

Push

VPush watches your server's and wakes its users' phones when something arrives for them. There are two ways to reach a phone, and you can use both.

Through Veydan network push

Works for the official Veydan apps. The Veydan network push server works as a gateway: the phone gets a ticket from it for its push token and registers on your VPush with that ticket and a separate push-only key. Your VPush seals each push with this key and asks the gateway to wake the phone. No Firebase key is needed.

  • What the gateway sees: the device token, the identity that took the ticket, your server's address and sealing key, the time, the sizes, and which wake-ups are calls. So it can tell which of its users use your server.
  • What the gateway doesn't see: who wrote, in which chat, and what arrived.

The installer asks about this for a server with a relay. The default is off. If you answer veydan, the installer adds vpush if it isn't among the parts. To turn it on or off later:

veydan-server push veydan   # or: veydan-server push off
veydan-server rerun

The gateway needs VPush 0.5.0 or later and vpush on the server. If it's missing, veydan-server push veydan and veydan-server card say so, and veydan-server add vpush adds it. Your answer is also shown in the server (p=).

No push

The apps read your server while they're running. An app asleep on Android learns about a message when it's opened.

Your own Firebase key

For apps built with your key. VPush needs a Firebase service account JSON for each such app: set FCM_APPS="<app id> ..." in server.conf and put fcm-<app id>.json next to the installer. For iPhones the same goes through APNs: set APNS_APPS="<bundle id> ...", APNS_KEY_ID and APNS_TEAM_ID, and put apns-<bundle id>.p8 next to the installer.