UnifiedPush / fcm-distributor

Mirror of https://codeberg.org/UnifiedPush/fcm-distributor
Apache License 2.0
25 stars 1 forks source link

How this works? #102

Closed johnlpe closed 6 days ago

johnlpe commented 1 year ago

How this works? How does Google FCM agree to send other apps' notifications ts to this?

Telegram -> FCM -> Google Services on the device -> Telegram app

p1gp1g commented 1 year ago

This app can be used to forward notifications to app supporting UnifiedPush. The protocol between push server and push app is FCM, so you must have Google Services installed.

This is useful if your app supports UnifiedPush and does not support FCM directly and you want to use FCM anyway :)

johnlpe commented 1 year ago

This app can be used to forward notifications to app supporting UnifiedPush. The protocol between push server and push app is FCM, so you must have Google Services installed.

This is useful if your app supports UnifiedPush and does not support FCM directly and you want to use FCM anyway :)

Yup, but I don't understand how you can do that. If the Application Server supports only UnifiedPush and I configure it to send my notifications to FCM then FCM should support UnifiedPush too, but FCM have own propietary protocol between Application Server and FCM, so how? And if that works, I need make dev account to FCM and configure FCM send all notifications to Google Service on my device, but how Google Service accept to send them to the one app (fcm-distributor)?

p1gp1g commented 1 year ago

Like most of the applications, there is a server between your application server and google services. We call it a push gateway. Basically, your server supporting a protocol compatible with UnifiedPush (like webpush) :

[App Server]==webpush (UnifiedPush compatible)==>[Push Gateway]==FCM server protocol==>[Google Server]==Fcm internal protocol==>[Google Services (phone)]==FCM Intent==>[FCM-Distributor (phone)]==UnifiedPush==>[Your app (phone)] !

VadosG commented 9 months ago

So, if I understand correctly, if I disable/remove google services - this software will not replace their FCM for me?

p1gp1g commented 9 months ago

Exactly

VadosG commented 9 months ago

☹️

p1gp1g commented 6 days ago

But for applications using UnifiedPush, you can install another distributor they don't use google services: https://unifiedpush.org/users/distributors/