this post was submitted on 27 Jul 2023
4 points (100.0% liked)

DeGoogle Yourself

7743 readers
1 users here now

A community for those that would like to get away from Google.

Here you may post anything related to DeGoogling, why we should do it or good software alternatives!

Rules

  1. Be respectful even in disagreement

  2. No advertising unless it is very relevent and justified. Do not do this excessively.

  3. No low value posts / memes. We or you need to learn, or discuss something.

Related communities

[email protected] [email protected] [email protected] [email protected] [email protected] [email protected]

founded 4 years ago
MODERATORS
 

I have a us Samsung phone so I an unable to root and replace GMS with micro g. Would it he possible to patch apps (with lspatch for example) to use another app for push notifications? Firebase notifications are the only reason I have GMS at all still.

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 1 points 1 year ago (1 children)

I will have to look at how that works. Maybe I can run a server on a computer to push to ntfy.

[–] [email protected] 1 points 1 year ago (1 children)

It has a default push server setup that you can use if you wish. You could absolutely run your own server too. Ntfy has to be excluded from battery optimization to allow it to keep a websockets connection open. That is part of what makes degoogled phones drain so fast is lack of firebase notifications causing every app to maintain their own connection. Firebase covers hundreds of apps with a single connection rather than hundreds of individual connections.

[–] [email protected] 1 points 1 year ago (1 children)

No idea if this would he possible but my starting idea here is using a server of some sort to grab the firebase notifications and push them all over one webocket similar to GMS. What I don't know is how registering apps works. I know from micro g they register themselves to receive notifications but I'm not sure of what data is actually given to micro g or the relationship between the app and micro g/the web socket.

[–] [email protected] 2 points 1 year ago (1 children)

Ah. I see what you are thinking. I don't think that would work as most apps don't register with UnifiedPush.

[–] [email protected] 1 points 1 year ago* (last edited 1 year ago)

I wonder if we could use lspatch (or similar) to hook in and change that. I might have a project ahead of me. We'll see.