News for hackers. Stuff that matters.
Re:Telegram Voice Chats by curiousgal on Wednesday December 23, 2020 @05:34AM (#25516271)
I used to mainly use Telegram but their broken notifications on Android turned me off. If a chat app can't get notifications right, it's not worth using.
Re:Telegram Voice Chats by vezycash on Wednesday December 23, 2020 @06:08AM (#25516454)
Whatsapp, facebook, messenger, twitter enjoy unfair advantage from device manufacturers.

They whitelist the above apps from their battery management systems and indiscriminately terminate everything else.

Summary - figure out how to whitelist telegram on ur phone and you should be fine.

Re:Telegram Voice Chats by Vinnl on Wednesday December 23, 2020 @06:20AM (#25516519)
See also: this long page in Signal's documentation with device-specific instructions on how to avoid it being throttled [1].

[1] https://support.signal.org/hc/en-us/articles/360007318711-Tr...

Re:Telegram Voice Chats by ninkendo on Wednesday December 23, 2020 @06:41AM (#25516608)
Huh? That sounds wrong to me. Do you have a source for this?
Re:Telegram Voice Chats by zinekeller on Wednesday December 23, 2020 @06:49AM (#25516651)
There is literally a website for this specifically (https://dontkillmyapp.com/) created by the Urbandroid team (creators of Sleep as Android). Rather annongingly, the team started out due to problems encountered on HMD/Nokia phones, since acknowledged and partially fixed (https://sleep.urbandroid.org/documentation/faq/alarms-sleep-...).

Personal anecdote: even Google have been wishy-washy between different versions of Android when it comes from battery optimizations (Android 6/Marshmallow is the most hardest on this front), but at least it was documented. Imagine the pain of managing other brands (and it seems that all Android manufacturers engage on it one way or another).

Edit: in 2018, VideoLAN/VLC complained that Huawei agressively kills apps outside of its whitelist (https://twitter.com/videolan/status/1022033608670961665). There is no update on this one unfortunately, but I've heard that it was fixed in subsequent EmUI versions but there is no verification of that from VideoLAN or Huawei.

Edit edit: Unrelated to the notfications issue, benchmark scores are allegedly being tricked out by a certain chip manufacturer running the chips out-of-spec in a whitelist (https://www.techarp.com/mobile/mediatek-benchmark-cheating-2...).

Re:Telegram Voice Chats by ninkendo on Wednesday December 23, 2020 @07:48AM (#25517010)
Ah, I realized now by context that you’re only talking about android. (You only said device manufacturers so I thought you were referring to iOS as well.)

But I had this whole reply typed up for iOS so, may as well include it:

—

I can only speak for iOS, but it definitely doesn’t work this way on iOS.

The ability to run in the background is something you can grant to any app, and there’s no special treatment of any one third party app versus another.

It’s not unlimited though even if you do grant the permission... if they use too much memory in the background they may be killed, and there’s a limit to how long they can stay running in the background.

Push notifications are supported anyway, because the apps servers are supposed to deliver push notifications to APNS, which delivers them to your phone on behalf of the app even if the app is closed.

But the transition from “app is running in the background and notifies you” (which can’t last forever) and “app is killed but the server delivers a notification through APNS” (which works when the app is dead) is often implemented poorly by developers and isn’t seamless. It’s hard to get it right.

But no third party apps get treated any different in this regard.

Re:Telegram Voice Chats by zinekeller on Wednesday December 23, 2020 @09:26AM (#25517899)
I concur. It is indeed more consistent on their devices, probably because the (relative) unfragmented nature of iOS by nature allows to simplify and focus the app development and get consistent results (unlike Android that you can't just match the UI between devices).
Re:Telegram Voice Chats by rhamzeh on Wednesday December 23, 2020 @01:03PM (#25520244)
The problem isn't killing the apps in the background, it's whitelisting others.

I want every app I don't manually allow to run in the background to be terminated after a short period of 30s~60s or so.

Re:Telegram Voice Chats by ffpip on Wednesday December 23, 2020 @05:46AM (#25516334)
Telegram's notifications are the best among all apps. It works perfectly. If you view a message on desktop, it also removes the android notification.
Re:Telegram Voice Chats by m-ee on Wednesday December 23, 2020 @06:52AM (#25516664)
Bizarrely this used to work on Slack, but they removed the feature as part of a fix for some other unspecified notification bug. It’s remained broken since.
Re:Telegram Voice Chats by crtasm on Thursday December 24, 2020 @11:58AM (#25529161)
Haven't tried Telegram but Signal does that too (Linux desktop / Android app here)
Re:Telegram Voice Chats by ewired on Wednesday December 23, 2020 @05:42AM (#25516316)
What did you find wrong with them? In my experience, Telegram's notifications worked better than any other app on a phone where Google Play Services was replaced with microG. I wish more apps would see how they're doing it without killing battery.
Re:Telegram Voice Chats by interestica on Wednesday December 23, 2020 @09:14AM (#25517811)
Okay I thought that was just me. The majority of the time, I just don't get a notification. It's intermittent, so it's not that something is turned off. I definitely don't have the issue with other comms apps.

That being said, telegram is probably my preferred app - and sometimes I actually use the broken notifications as a positive (the message isn't that important).

Re:Telegram Voice Chats by angus_gh on Wednesday December 23, 2020 @11:05AM (#25518997)
Try checking this website for the model of phone you have https://dontkillmyapp.com/
Re:Telegram Voice Chats by lucb1e on Wednesday December 23, 2020 @04:59PM (#25522741)
It's a mixed bag. Some people (mostly also those who have zero ways of even starting to debug it) seem to have a lot of trouble with it, also on dummy OSes like Apple's, while for me it simply works on a heavily customized Android where a ton of stuff breaks and indeed a lot of other messengers have trouble with it (ranging from Keybase which shows nothing at all ever to Matrix which pops up a notification every 5 seconds for 0.2 seconds "checking for messages" in order to make it work).

It seems not to be a Telegram-specific problem, and I haven't heard from anyone who actually had the issue and even attempted to find what's wrong.