android icon indicating copy to clipboard operation
android copied to clipboard

Use microG's Google Play Services library replacement to support Push Notifications for F-Droid users

Open rugk opened this issue 7 years ago • 5 comments

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.

rugk avatar Dec 08 '18 13:12 rugk

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).

nextcloud-android-bot avatar Dec 08 '18 14:12 nextcloud-android-bot

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.

tobiasKaminsky avatar Dec 12 '18 06:12 tobiasKaminsky

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.

mario avatar Dec 12 '18 07:12 mario

The referenced repo is archived, this is the new one: https://github.com/microg/GmsCore

tobiasKaminsky avatar Jan 27 '22 07:01 tobiasKaminsky

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)

p1gp1g avatar Dec 05 '25 16:12 p1gp1g