Use ntfy for other apps?
-
Can you use ntfy as your push gateway for other cloudron apps like Mattermost and RocketChat?
-
-
@Recliner2042
I use NTFY for push notifications on my Elements install with Android based clients.
Should work for IOS as well.
It's running very smooth for more than a year...Here's what i did to make this work:
To make use of your ntfy installation, on Android for example, you need two things:
the ntfy app:
a UnifiedPush-compatible matrix app
You need to install the ntfy app on each device on which you want to receive push notifications through your ntfy server. The ntfy app will provide UnifiedPush notifications to any number of UnifiedPush-compatible messaging apps installed on the same device.Setting up the ntfy Android app:
Install the ntfy Android app from F-droid or Google Play.In its Settings -> General: Default server, enter your ntfy server URL, such as https://ntfy.DOMAIN.
In its Settings -> Advanced: Connection protocol, choose WebSockets.That is all you need to do in the ntfy app. In particular you do not need to follow any instructions about subscribing to a notification topic as UnifiedPush will do that automatically.
Setting up a UnifiedPush-compatible matrix app:
Install any UnifiedPush-enabled matrix app on that same device. The matrix app will learn from the ntfy app that you have configured UnifiedPush on this device, and then it will tell your matrix server to use it.Steps needed for specific matrix apps:
FluffyChat-android:
Should auto-detect and use it. No manual settings.SchildiChat-android:
enable Settings -> Notifications -> UnifiedPush: Force custom push gateway.
choose Settings -> Notifications -> UnifiedPush: Re-register push distributor. (For info, a more complex alternative to achieve the same is: delete the relevant unifiedpush registration in ntfy app, force-close SchildiChat, re-open it.)
verify Settings -> Notifications -> UnifiedPush.Element-android:
choose Settings -> Notifications -> Notification method -> ntfy
verify Settings -> Troubleshoot -> Troubleshoot notification settings
If the matrix app asks, "Choose a distributor: FCM Fallback or ntfy", then choose "ntfy".If the matrix app doesn't seem to pick it up, try restarting it.
Cheers