Skip to content

Interface: IPushPayload ​

Defined in: types/push.ts:99

What the backend encrypts for one device. Only that device can read it: the phone builds the visible notification from it, so the relay, Google and Apple never see who it is for, who sent it or what it says.

Properties ​

PropertyTypeDescriptionDefined in
bodystring-types/push.ts:111
channelId?numberAbsent only on a test push.types/push.ts:106
conversationTitle?stringGroup or server-channel label; absent for one-to-one chats and hidden previews.types/push.ts:117
instanceUrlstringThe instance's origin, checked against the session the phone is signed in to.types/push.ts:103
messageId?number-types/push.ts:109
preview?"none" | "full" | "sender"Records the preview used so native rollups can discard history when privacy changes.types/push.ts:113
sender?IPushSenderOnly person-authored messages/mentions whose preview permits identifying the sender.types/push.ts:115
sentAtnumberWhen the backend built it (epoch ms), so a call that arrives late shows as missed rather than ringing.types/push.ts:119
serverId?number | nullnull or absent for a direct message or group chat.types/push.ts:108
titlestring-types/push.ts:110
typePushPayloadType-types/push.ts:101
userIdnumber-types/push.ts:104
v1-types/push.ts:100

Released under the GNU Affero General Public License v3.0.