News for hackers. Stuff that matters.
Re:Google just deleted my nearly 10-year-old free and open-s... by panpanna on Thursday August 29, 2019 @05:22AM (#20827987)
> 1. As you stated, Google forces devs to rely on presence of the Google Play Services

Not forcing per se. Google just provides a convenient services that devs are happy to use.

Re:Google just deleted my nearly 10-year-old free and open-s... by Macha on Thursday August 29, 2019 @05:33AM (#20828050)
That time has passed. There's functionality on Android that can only be reliably provided through play services these days (push notifications being the big one).
Re:Google just deleted my nearly 10-year-old free and open-s... by maple3142 on Thursday August 29, 2019 @10:32PM (#20835521)
Not really. Apps in China are mostly don't need Google Play Service, so it is totally up to developer to decide whether use it or not.
Re:Google just deleted my nearly 10-year-old free and open-s... by fulafel on Thursday August 29, 2019 @09:25AM (#20829256)
It's just an optimization/convenience to use Google services for push notifications, no?
Re:Google just deleted my nearly 10-year-old free and open-s... by cameronbrown on Thursday August 29, 2019 @10:18AM (#20829694)
Basically: Back in the day a ton of apps used their own notification servers, with each one clashing, waking the device up, etc..

Google Cloud Messaging was then set to be the only service that could wake the device up when it was sleeping. Supposedly it batches messages and sends them at optimal times to save battery.

Re:Google just deleted my nearly 10-year-old free and open-s... by fulafel on Thursday August 29, 2019 @11:53AM (#20830592)
I'm not convinced that other network io is blocked. There seem to even be commercial competition for GCM: https://pushy.me/
Re:Google just deleted my nearly 10-year-old free and open-s... by cameronbrown on Thursday August 29, 2019 @04:41PM (#20833451)
It's not when the device is awake or has a wakelock. But since Android's Doze (basically deep sleep battery saving state) GCM is the only service that can wake it up.
Re:Google just deleted my nearly 10-year-old free and open-s... by fulafel on Friday August 30, 2019 @12:39AM (#20836012)
I thought the device wakes up from Doze regularly, and then you can poll for the notifications. The SDK docs sound this way too: "While the device is in Doze, apps' access to certain battery-intensive resources is deferred until maintenance windows"

But it seems these maintenance windows aren't frequent enough (every 15 minutes?) for some apps.

Re:Google just deleted my nearly 10-year-old free and open-s... by mflare on Friday August 30, 2019 @04:19AM (#20836729)
The minimum interval for periodic jobs is 15 minutes. When the device is in Doze mode, the jobs are defered to the next maintenance window. The longer the device remains in Doze mode, the greater the distance between two maintenance windows.

Do you want to use a messenger or any other social media app where the worst case scenario is that it takes 15 minutes for the message to reach the recipient?

Certainly not, so the app vendor is forced to use FCM to display notifications immediately even if the recipient's device is in Doze mode.

Re:Google just deleted my nearly 10-year-old free and open-s... by panpanna on Thursday August 29, 2019 @07:24AM (#20828481)
You are correct, but how many applications need push notifications?
Re:Google just deleted my nearly 10-year-old free and open-s... by archi42 on Thursday August 29, 2019 @08:22AM (#20828813)
If you've an android phone, just count your apps? I did, and expected 8 of my 20 apps to use GCM. MicroG revealed it to be 11 (actually 12 due to "MicroG services core" registering with GCM as well).

I might be an outlier though.

Re:Google just deleted my nearly 10-year-old free and open-s... by realusername on Thursday August 29, 2019 @06:10AM (#20828193)
That's not true anymore, for notifications it's now mandatory.