Why use a new custom-built protocol instead of adding support for the Web Push protocol already supported by Firefox, Chrome, Safari and others? https://web.dev/push-notifications-web-push-protocol/ . Now backend developers have Yet Another Push Notifications Protocol to build support for, instead of being able to just easily plug into their existing code. As a benefit, since all notifications through the Web Push pr…
UnifiedPush is compatible with WebPush: both just involve an HTTP POST to a specific URL. If your application server supports WebPush, it can send encrypted notifications to UnifiedPush servers (that is how we're planning to support Telegram, for example). You can then decrypt these notifications in the app [1]. However, some protocols only send a wake-up ping or random ID in the push notification, Trifa and Matrix r…
If you are sending a small amount of data it is likely a tiny overhead for some notable benefits.
1. If all data is encrypted then no data stands out for being encrypted.
2. It provides integrity which may prevent push servers from changing message to be invalid or triggering parsing bugs in applications.
3. If only encrypted messages are supported it is impossible for uses which do need encryption to forget to turn it on or accidentally turn it off.
For many apps the benefit here is indeed tiny, but so is the cost. So I think it is best to not support unencrypted messages altogether.