Use microG's Google Play Services library replacement to support Push Notifications for F-Droid users
Is your feature request related to a problem? Please describe.
F-Droid users cannot get "real" push notifications.
Describe the solution you'd like
MicroG is developing a replacement library for Play Services client library: ~~https://github.com/microg/android_external_GmsLib~~ https://github.com/microg/GmsCore (edit: changed URL)
It's FLOSS so it would AFAIK be allowed to be included in the F-Droid build. And if the F-Droid users do have the original Google Play Services or microG installed, they could use a real FLOSS app, but also get push notifications. (so stuff like https://github.com/nextcloud/android/issues/922 is not needed)
Describe alternatives you've considered
Leave it as it is; or remove Google Play Push services entirely. Both not ideal.
Additional context
It seems to be still in development, but it's an idea, at least.
GitMate.io thinks possibly related issues are https://github.com/nextcloud/android/pull/2971 (Library upgrades), https://github.com/nextcloud/android/issues/15 (Two character password in Google Play screenshot), https://github.com/nextcloud/android/issues/3148 (Use Lombok), https://github.com/nextcloud/android/issues/1202 (Use avatars), and https://github.com/nextcloud/android/issues/922 (Remove google.gms play-services dependency).
Thank you for pointing this out! Unfortunately the project is missing FCM (firebase cloud messaging) which is the successor of GCM (which is included). There is already a ticket: https://github.com/microg/android_external_GmsLib/issues/14
I'll check this periodically and once there is progress, I'll try to include it in our app.
Google is slowly open sourcing all the Firebase-* things, so I expect messaging to follow soon so there will be no need for client-side microg.
The referenced repo is archived, this is the new one: https://github.com/microg/GmsCore
I have a build that support FCM without any proprietary blob (using UnifiedPush under the hood), and without the proxy limitations (the nextcloud servers push directly to FCM).
I will open a PR once the backend is merged (https://github.com/nextcloud/notifications/pull/2662)