Skip to content
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

Use UnifiedPush for push notifications #2743

Closed
vurpo opened this issue Jan 30, 2021 · 6 comments · Fixed by #6228
Closed

Use UnifiedPush for push notifications #2743

vurpo opened this issue Jan 30, 2021 · 6 comments · Fixed by #6228
Labels
T-Enhancement New features, changes in functionality, performance boosts, user-facing improvements

Comments

@vurpo
Copy link

vurpo commented Jan 30, 2021

Opening an issue about this here for good measure. The recently started UnifiedPush project (#unifiedpush:matrix.org) is an Android protocol and library for apps to be able to receive distributor-agnostic push notifications. Element Android could use the UnifiedPush library to still receive push notifications from FCM, but also alternatively from other non-Google distributor systems that the user can have installed on their device (currently available are Gotify, a server and app that receives push notifications via a websocket, and NoProvider2Push, a peer-to-peer system). This would make it possible to have push notifications without depending on Google services or libraries.

The UnifiedPush library comes in two variations: the FCM-added version of the library, which basically comes with the FCM distributor built into the library (so a user doesn't need to do anything other than install the app to get FCM notifications), and the main version of the library, which doesn't come with FCM embedded (so a user has to separately install the FCM, Gotify, or other distributor as an app on their phone to get push notifications).

These two versions of the library could be used in the Google Play version and F-Droid version of the app respectively, to be able to publish an easy-to-use no-setup-needed version of the app to Google Play, and a version that doesn't depend on any Google code to F-Droid.

@p1gp1g
Copy link
Contributor

p1gp1g commented Jun 2, 2021

#3448

This was referenced Jun 2, 2022
@bmarty
Copy link
Member

bmarty commented Jun 8, 2022

@vurpo your issue description is super clear. I will get inspired from it to write a documentation about UnifiedPush and it's configuration in the Element Android project. Thanks!

bmarty added a commit that referenced this issue Jun 9, 2022
Introduction is inspired from #2743.
bmarty added a commit that referenced this issue Jun 9, 2022
Introduction is inspired from #2743.
@MayeulC
Copy link

MayeulC commented Aug 10, 2022

For discoverability (and perhaps search engine referencing), the link to the current doc is: https://github.com/vector-im/element-android/blob/develop/docs/unifiedpush.md

@ildar
Copy link

ildar commented Aug 16, 2022 via email

@vurpo
Copy link
Author

vurpo commented Aug 16, 2022

To set it up, install one of the UnifiedPush distributors (see unifiedpush.org) and go into Element's settings to choose the distributor you have installed. I'm not sure if F-Droid has updated to this version yet though.

This setup process is extremely easy, but since people keep asking about it should probably have some user facing instruction somewhere?

@djmaze
Copy link

djmaze commented Aug 16, 2022

Yes, F-Droid already has this version. I had ntfy already installed and upon restarting Element, I was asked how I wanted to be notified in the future. Really easy.

(image from the pr at #6228)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-Enhancement New features, changes in functionality, performance boosts, user-facing improvements
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants