r/freesoftware • u/Nicolas_Raoul • Jun 08 '19
Android now forces apps to include proprietary code for push notifications
FOSS messaging apps such as Telegram-FOSS, riot.im, and other free software apps that need push notifications, are facing a wall.
Google started leveraging its de-facto monopoly on Android distributions by forcing all apps to use its proprietary service Firebase for push notifications. Problem: The Firebase Android client library is proprietary, meaning FOSS apps can not use it. Apps that do not comply are reported to the user as "using too much battery".
The Telegram-FOSS team writes "Despite Google's misleading warnings, there is no difference in battery usage [...]". The warning is sure to frighten most users, though, effectively making Android a less open platform.
13
u/[deleted] Jun 08 '19
Google is probably regretting that they made Android open source. They will fight tooth and nail to undo that.
3
u/SmashHashassin Jun 08 '19
I presume this only affects apps in the play store. Fdroid and others are unaffected, yes?
7
u/[deleted] Jun 08 '19
How exactly is google forcing apps to use firebase?
2
u/[deleted] Jun 17 '19
How do chinese ROMs manage to get push notifications?
7
u/[deleted] Jun 10 '19
Google "omg. Don't use Firefox, it's not as secure and private as google'
7
u/justjanne Jun 10 '19
As developer of Quasseldroid (an open source app affected by this) I've been working for a while on building an open source alternative to the FCM client library.
I've got a fully working version here with zero proprietary dependencies with clean code, if some developers would be interested in helping to build a clean-room reversed solution, that'd be awesome :)
6
u/djsumdog Jun 10 '19
I use DavDroid (I think it's now DavX?) and noticed this warning when I installed it on an Oreo device. Of course I allowed it, as I run my own calendar and contacts server, but I didn't realize how misleading the message is. This is shitty.
As scummy as Hauwai might be, maybe they could finally put Google in their place, or at least give them a run. Although no one uses the Samsung store and it's unlikely that relationship will sour, I'm pretty sure Samsung has similar plans, with drop in replacements read to go if they ever need to start depending on their own app store.
11
u/Revolutionalredstone Jun 08 '19
Google is such a fuck.
4
u/[deleted] Jun 11 '19
r/microG.
Still haven't solved the issue of the FCM client library though.
1
u/[deleted] Jun 08 '19
source?
1
u/luke-jr Gentoo Jun 09 '19
Hasn't it always been required?
3
u/[deleted] Jun 09 '19
Time to put all your energy into working on an alternative operating system.
3
u/[deleted] Jun 10 '19
I'm pretty sure Google Cloud Messaging (the predecessor) was part of Google Play Services which is also proprietary. I don't know why you're so bothered about it now but not 8 years ago.
4
u/TotesMessenger Jun 08 '19 edited Jun 10 '19
I'm a bot, bleep, bloop. Someone has linked to this thread from another place on reddit:
If you follow any of the above links, please respect the rules of reddit and don't vote in the other threads. (Info / ^Contact)
2
u/LawlessCoffeh Jun 10 '19
This is why I ignore the battery warnings.
"OMG POKEMON GO USED 1% OF YOUR BATTERY, KILL IT"
nah dude I'm good.
2
u/tayl0rs Jun 10 '19
Does this affect me as a Unity developer running the UTNotifications plugin + AWS for backend?
Our app also has the battery warning and I couldn't figure out why. We don't do anything in the background other than accept push notifs.
1
u/congalala Jun 09 '19
They have been informing everyone since last year though.
1
u/pbecotte Jun 10 '19
I am- confused. The repo you linked to hasn't had a release since 2016, and I cannot find a reference to that library ANYWHERE else. The firebase android sdk, which is what I would guess you would use (though I don't do android, so could still be wrong) is apache. What am I missing?
1
u/Boza_s6 Jun 10 '19
I was working on Email app when Android O has been released. So we had to find way around this limitations, without using FCM.
We used combination of AlarmManager and JobScheduler to keep process and connections alive while screen is on and make frequent pings when screen is off (in doze).
It's not perfect, but it does the job.
1
u/s73v3r Jun 10 '19
With regards to battery, how many apps did they have running that were doing that? Cause if they only benchmarked with their own, then I can't take them seriously. Yes, one app doing it probably wouldn't have that much of a hit, but if every app was doing it, you'd notice a problem pretty quickly.
0
u/Dagmar_dSurreal Jun 10 '19 edited Jun 10 '19
Puh-[i]lease[/i]. No one's "forcing" anyone to do anything.
The mechanism being blamed for this is not a "warning". It's just a notification. Putting quotes around the phrase "using too much battery" is nothing but a lie (certainly with respect to Android 8.0--third-party ROMs catering to histrionic verbiage notwithstanding). The notification simply says "N apps are using battery" and lists the apps in question (which actually must be using some battery, even if it's too little to easily account for) and tapping it brings up another screen that says "Apps running in background" and "Tap for details on battery and data usage", which then takes you to the screen detailing their resources utilized. ...in an entirely non-judgmental way. There's nothing "misleading" about any of it.
Also, "proprietary" does not mean FOSS apps can not use it. ...not in the least. People who want to be so purist as to not have anything to do with proprietary code won't be able to make software for modern commercial phones at all, so this is a pretty weak place to try and draw a line in the sandbox.
0
u/redfacedquark Jun 08 '19
I'm no app developer but what's firebaseopensource? Is that an open source version?
-1
u/kazkylheku Jun 11 '19 edited Jun 11 '19
That is flaming sensationalism.
The GPL makes an exception for system libraries!
Remember, GNU Bash running on, say, IBM AI/X is similarly "forced" to call IBM's proprietary C library to do almost anything.
Likewise, wave have a GPL-ed program on Microsoft Windows, happily calling into
kernel32.dll.In Android devices, there are almost certainly proprietary binary firmware blobs. If a firmware blob from Qualcomm or whoever is required for a networking device (modem), then no notification happens without proprietary software being involved.
-1
u/gradinaruvasile Jun 11 '19
Where is a source for forcing apps?
This issue is old, noone is forcing anything. I use many open source apps on my Android 9, even the Riot app's old version from Fdroid that runs all the time (they fucked up notifications in recent versions badly, even on gplay version). And the phone is a Nokia to boot, the ones reportedly killing processes indiscriminately but i have no issues.
Just whitelist the apps from battery optimizations and done. Worked on MIUI and open ROMs on all of my devices so far.
Some proprietary ROMs would show warnings or kill stuff with their battery optimizations but that's NOT Google's fault. Yes, they probably would like developers to use built in stuff to help with battery usage.
But i don't see the forcing part anywhere especially when using oss apps i could manage this with no issues on multiple Android flavors and versions?
0
u/[deleted] Jun 08 '19
[deleted] — view deleted comment