nextcloud / android

📱 Nextcloud Android app
https://play.google.com/store/apps/details?id=com.nextcloud.client
GNU General Public License v2.0
4.2k stars 1.75k forks source link

OpenPush instead of FCM #5510

Open langfingaz opened 4 years ago

langfingaz commented 4 years ago

Is your feature request related to a problem? Please describe.

1) The NC app from the playstore uses Google Firebase Cloud Messaging to deliver push notifications. As Nextcloud is used by many privacy aware users, this is not ideal. 2) The NC (and NC Talk) app from f-droid lack in push notifications completely.

Describe the solution you'd like

There is a project funded by the PrototypeFund that aims to create a free and open source self-hosted replacement for Android Push Notifications. Even though this project is not yet ready to use, we could keep track of it and maybe at some point a) include an option in the settings to use a custom OpenPush instance instead of FCM for notifications. b) replace Google FCM with OpenPush completely and run an OpenPush instance that is preconfigured in the Android app.

https://bubu1.eu/openpush/

Alternatives

The usage of microG's Google Play Services library replacement on the f-droid version (see #3333) would solve (2).

Additional notes

(1) is not of high priority, same goes for providing a dedicated OpenPush server instance (as proposed in (b)). But having the option to use a custom OpenPush instance would be a good thing to have in the future!

tobiasKaminsky commented 4 years ago

I know Marcus and keep track of his project. Once it is in a state I can test it, I will include it in a separate test version of NC.

Regarding MicroG, here I also contacted the main author, but it lacks currently FCM implementation. And then still metadata would go via Google…

theCalcaholic commented 3 years ago

There is now https://unifiedpush.org/, which seems to serve as an abstraction layer on top of different push notification providers. It's already used by a few Matrix clients (e.g. FluffyChat, SchildiChat on Android; Nheko on Linux), for example, which as IMs are obviously highly dependant of having reliable push notifications.

UnifiedPush at this point supports the open source push provider gotify and Google FCM. It also supports a method called NoProvider2Push, however that's probably less relevant here, since it relies on the phone having a static IP

Freeedim commented 2 years ago

I don't know if I am missing something in your request, but for me, this setup works (including push notifications):

Note: So far, it seems NextcloudServices barely uses any battery.

Zocker1999NET commented 2 years ago
  • microg suite (core, store spoof, location, safe and minimalist Google Cloud connection) without any Google account.

With OpenPush / UnifiedPush, you wouldn't need to have microG installed and wouldn't need to connect to Google's Cloud to have working push notifications without draining battery.

Also, there is an FR which requests UnifiedPush support in #8684. As OpenPush seems to be actively maintained and UnifiedPush offers the user to select its distributor (as theCalcaholic already described), this issue may could be closed in favor of #8684.