Module push

Source
Expand description

ยงPush notifications module.

This module is responsible for Apple Push Notification Service and Firebase Cloud Messaging push notifications.

It provides PushSubscriber type which holds push notification token for the device, shared by all accounts.

Structsยง

PushSubscriber
Manages subscription to Apple Push Notification services.
PushSubscriberState ๐Ÿ”’

Enumsยง

NotifyState

Constantsยง

NOTIFIERS_PUBLIC_KEY ๐Ÿ”’
The key was generated with rsop generate-key --profile rfc9580 and public key was extracted with rsop extract-cert.

Functionsยง

encrypt_device_token ๐Ÿ”’
Encrypts device token with OpenPGP.
pad_device_token ๐Ÿ”’
Pads the token with spaces.