-
-
Notifications
You must be signed in to change notification settings - Fork 867
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Set up unified push messaging using the ntfy docker. Rework notifications. #2631
Comments
If i understand correctly, to make push notifications work with this unified push requires installing a separate application, and manually disabling battery optimizations for it. Some users who care about privacy a lot might do this, but the average user will find it much too complicated. So in practice we might have to support Googles push notification service as well. But personally, I dont think that push notifactions are really necessary for Lemmy. If you open the app once a day, you will see notifications in time. Besides, we want to avoid functionality which gets users addicted, and push notifications are definitely one of them. |
You're correct, it does require installing an additional app, the ntfy one, definitely an annoyance. At the same time tho, I kind of want to encourage using unified push as a long-term, less google-reliant solution to notifs. Google's FCM requires google play services, which a lot of android variants, as well as open source enthusiasts would rather not use. So we'd make notifications optional on both the server and client side. Using FCM might also be a security concern, so we'd almost certainly want to e2ee encrypt the message content (not super difficult), to avoid letting google hoover up all the data. If we used a self-hosted NTFY ( or even the one offered ), we wouldn't have to do that work. The mastodon android app has notifs, and I must say they are pretty useful, but they're using FCM. |
There is a library for UnifiedPush that can automatically fall back to FCM when UP is not available: https://unifiedpush.org/developers/embedded_fcm/ |
I think E2E with FCM is many times better than installing an extra app to get it working. Wouldn't it achieve the same? |
I wouldn't underestimate how much battery usage would rise if you had to have a persistent connection. It would also be terrible for servers due to the 24/7 load it would put them under. Additionally, almost more importantly, you must have proper push notifications for iOS since it does not allow backgrounded apps to stay alive indefinitely in any case. |
Web Push API would be an alternative solution to this. |
Were these concerns addressed? |
I use ntfy every day, and its battery usage is <1%. If there are battery concerns, it'd have to be opened on their repo. |
Since WebPush is a subset of UnifiedPush, implementing WebPush is a great way to solve this since then you get push on both the web, and on FOSS Android (using ntfy or other distributors). |
Let's keep this ticket alive. This really needs to happen to keep Lemmy usable for most. The lack of a decent push notification system can be a deterrent for new users. |
Hi, any updates on this? |
I am using Arctic client which supports Push notifications on iOS. A native push would be much better but at least it's something. |
This would be trivial to do, since we already send live messages over websockets.
Then mobile clients like Jerboa could subscribe to them.
https://docs.ntfy.sh/install/
https://f-droid.org/2022/12/18/unifiedpush.html
edit: also as part of this, I should rework notifications a bit.
The text was updated successfully, but these errors were encountered: