codedge-llc / pigeon

iOS and Android push notifications for Elixir
https://hex.pm/packages/pigeon
MIT License
606 stars 133 forks source link

Support non-Google Android with UnifiedPush #231

Open xeruf opened 1 year ago

xeruf commented 1 year ago

Is your feature request related to a problem? Please describe. I have a degoogled Lineage phone and am searching for a service like this

Describe the solution you'd like

UnifiedPush allows to receive Push Notifications on Android devices that do not have Google Play Services installed. In a free and open world there needs to be a way to free you and your customers from Google, if they choose to. Firebase integration is a no-go on the F-Droid store. Many FOSS apps, like Telegram, fall back to Foreground Service Workers and/or polling with the result of massive battery drain and a permanent annoying foreground notification.

UnifiedPush simply offers the user the option to install alternative push distributors such as ntfy or even NextPush. The benefit of this approach is that more than one application can leverage the UnifiedPush interface, but only one push receiver has to be installed and run in the foreground (i.e. ntfy or NextPush as mentioned above).

UnifiedPush also offers an Embedded FCM Distributor that you can automatically fallback to, if no other push distributors can be found.

Approach

The idea is to either run all Android oriented operations of Uniqush through UnifiedPush with a proper Embedded FCM Distributor or to try to run through UnifiedPush and fall back to the own FCM integration that Uniqush offers.

https://github.com/uniqush/uniqush-push/issues/275

hpopp commented 1 year ago

Thanks for the request! Perhaps someone might be interested in taking it up as a new library? The Pigeon 2.0 release candidates support custom push adapters for use-cases just like this https://hexdocs.pm/pigeon/2.0.0-rc.1/Pigeon.Adapter.html