TelegramMessenger / Telegram-iOS

Telegram-iOS
5.55k stars 1.5k forks source link

Background activity drains battery very fast #81

Open atapin opened 5 years ago

atapin commented 5 years ago

Telegram always keeps 1st place among all my apps as a power consumer. During the night it consumes energy exclusively (95-100%).

dderg commented 4 years ago

I’ll give it a try. https://github.com/nicegram/Telegram-iOS/issues/8 Doesn’t sound good though

Kylmakalle commented 4 years ago

Luckily, this issue does not affect most of the users. But in case, еhere's a workaround for that in app settings.

dderg commented 4 years ago

@Kylmakalle Actually I’m surprised by the functionality! It’s nice!

tecnouser commented 4 years ago

Guys I'm experiencing such a bad battery drain after telegram's latest update (6.2). Never had a single issue with telegram before this one, but this is so crazy, I have an iphone 11 pro max running iOS 13.3 and after only a few minutes of usage the battery drain (and the heat) is unbelievable. I tweeted telegram, wrote 2 email but no reply so far. I'm waiting for another update to be released, hoping they'll solve the problem. Until they hopefully do that, what about Nicegram? Does anyone know if it's super safe? It should be since it uses the same telegram server, right?

tecnouser commented 4 years ago

For everyone who'll read, Telegram's latest update (6.2.1) solved all the battery drain and heat issues on the 11 pro max, and also the vocal messages issue that occurred on the previous iphones. I'll stick to this update for a while💪🏻

malvibra commented 4 years ago

I updated to 6.2.1 but I still have the issue. It seems to be common to the messaging apps since I experience the same issue with Whatsapp. Could it be related to how PushKit handles the notifications?

Kylmakalle commented 4 years ago

I updated to 6.2.1 but I still have the issue. It seems to be common to the messaging apps since I experience the same issue with Whatsapp. Could it be related to how PushKit handles the notifications?

https://github.com/TelegramMessenger/Telegram-iOS/issues/81#issuecomment-585990544

sergekills commented 4 years ago

Don’t have such an issue with WhatsApp. Telegram uses the battery a lot. Still. Disgusting.

Riconec commented 3 years ago

Strangely enough my phone died 100->20% in an hour. I opened battery menu and found that google calendar (but it wasn't background activity) killed my battery while phone was locked. So ios\push can lead to certain apps become crazy. Have anyone experienced the same behavior on other apps? btw I am done with telegram on ios, nicegram works wonky in terms of updating messages and unread counter but i can expect my phone not to die instantly

Lex4hex commented 3 years ago

Same here both on the latest iOS on iPad and iPhone. That's very bad guys. imageimage

imlps commented 3 years ago

Reported this via Twitter on 23/06/2019, was told to seek help via the in-app support. Unsurprisingly to me, no one get back to me.. and now, still the same..

catfishberg commented 3 years ago

Reported this via Twitter on 23/06/2019, was told to seek help via the in-app support. Unsurprisingly to me, no one get back to me.. and now, still the same..

I didn't get any reply. 14 minutes on screen usage and 4 hours in background draining 41% in total. I'm starting to think about leaving telegram

DataGreed commented 3 years ago

Same problem. Are they mining bitcoins or something? I guess you have to fund the service somehow.

TomReidNZ commented 3 years ago

Having this issue on the latest iOS too

lwschan commented 3 years ago

I am also experiencing this problem.

dtimekeeper commented 3 years ago

After a combined 11+ hours of background battery usage over a week, I've just deleted Telegram and installed Nicegram. After the entire day, it's only taken up 4 minutes of background screen time. It kinda speaks to the state of things when a fork of Telegram manages to solve this issue but not the main application itself.

albertmir commented 3 years ago

The same here. Experiencing a battery drain on an iPhone 12 Pro with iOS 14.3. However, disabling the background updates for Telegram seem to be enough for a very reasonable improvement.

JuanpaG94 commented 3 years ago

Same here. Battery drains still happening and were happening FOR YEARS. iPhone X iOS 14.3 latest telegram stable update.

Disabling app background refresh improves something, but having this enabled is an overkill and an issue that telegram devs needs to address asap.

It's been there for years and still ignoring it.

Lex4hex commented 3 years ago

I've switched to Nicegram, no problems anymore. It works great.

imlps commented 3 years ago

I tried Nicegram (battery doesn't drain) but there's one problem, my friend tried to call me but it won't ring, and at my friend's side it's basically like a rejected call. Anyone has the same experience?

Kylmakalle commented 3 years ago

I tried Nicegram (battery doesn't drain) but there's one problem, my friend tried to call me but it won't ring, and at my friend's side it's basically like a rejected call. Anyone has the same experience?

Unfortunately it's a known restriction. https://nicegram.app/7.0#nicegram-restrictions

MaksimMedvedev commented 3 years ago

Same here, iOS 14.4, iPhone 11 128.

e.g. today's screen-on drain was 40 min background drain was 3h10m

bohdanbirdie commented 3 years ago

iPhone 11 Pro, iOS 14.3, app version 7.4.2 (19883) 35m on the screen, 2h 30m background activity

paride5745 commented 3 years ago

Same issue here.

iOS 14.4 on iPhone XR, telegram is the app using most battery on my phone and it's quite annoying considering Signal uses way less battery with much more usage.

MaksimMedvedev commented 3 years ago

Seems like it's an issue on Android too. My friend with S21 (Exynos) uses Telegram somewhat like me and reports same screen-on and background activity ratio

mimmori commented 3 years ago

Any update? It seems the issue become more significant web the network signal coperture is not good

fttx commented 3 years ago

Telegram Background activity drains more battery than Youtube that is on screen. Not acceptable. Is this battery consumption related to some specific feature?

Casuallynoted commented 3 years ago

Also experiencing this here, along with intense systemwide performance slowdown that is linked to Telegram running in the background.

ghost commented 3 years ago

Background sync turned off , low bat mode on , Background download turned off from Telegram Settings , removed from recents as well (swiped up from open background apps ) iOS 14.5.1 - Telegram 7.7 1 min on screen - 39 m background photo_2021-05-17_14-43-53 copy

Update: I removed my secondary account, turned on always use less data and clear every time I notice it's running in the background Now its 8 min on screen - 18min background.

Update 2: FIXED I don't have problems anymore.

Nicistarful commented 3 years ago

This issue was created two years ago and not a single developer fixed it. This is a major problem, Telegram is my #1 battery drainer even though in-app and system side settings for background usage and background downloads are off. Why is this still a topic of debate and not #1 priority to fix? Would be more than happy if a dev would look into this.

murtoM commented 3 years ago

I did have this problem on my iPhone SE (2nd gen) but not in my iPad (8th gen), but it did go away once I uninstalled and reinstalled Telegram on my iPhone. Possibly the problem can reappear some day, but it has been fine for few months now.

paride5745 commented 3 years ago

I solved the problem by leaving Telegram and moving to Signal.

Now my phone lasts a full day without issues again.

chaselgx commented 3 years ago

Guys, check whether you have muted the message "notification" of each group! click group message -> click the group icon on upper right -> pull down the group info page -> """"mute"""" -> mute forever This problem occurs to me recently. On my device, telegram offen runs 1 to 2 hours foreground, but nearly 7 to 10 hours background, which easily drains my buttery. I was stupid enough to have my buttery changed to a new one, but the problem still unresolved. Then I found that the notification of each group could be muted, which will definately reduce the buttery consumption. I remembered that some group message notifications were not turned on by myself, but were automatically turned on by telegram itself. I think this is the reason why telegram consumes more and more buttery as time goes by. The more groups you have entered, the more notifications you will receive, the more buttery telegram will consume. It is a pity that Telegram developpers didnot tell us this. A bit arrogant, I think. Not everyone could find it him/herself.

fttx commented 3 years ago

Did you mean "Mute forever"? I already have muted all my groups except one, and still experiencing the issue. I've also added the groups to the archived chats section, but it doesn't have any impact either.

chaselgx commented 3 years ago

Did you mean "Mute forever"? I already have muted all my groups except one, and still experiencing the issue. I've also added the groups to the archived chats section, but it doesn't have any impact either.

I don’t know what is happening on your phone, but to me, after I muted all groups, the buttery use of telegram has dramatically dropped.

ismay commented 2 years ago

I solved the problem by leaving Telegram and moving to Signal.

Now my phone lasts a full day without issues again.

Exactly. Devs have had their chance. Bye bye telegram.

veselcraft commented 2 years ago

Still hapens on 7.9.1… Isn’t Pavel wanting to kill the iOS trough that way?

veselcraft commented 2 years ago

...and still happens on 8.1.1... 8 minutes of screen and 4 hours of background. The duck??? photo_2021-10-03 12 06 36

fttx commented 2 years ago

This is stupid. What’s the point of draining the battery if when I open the app it’s always showing outdated information?

StefanescuCristian commented 2 years ago

It's still happening in 8.1.2, iPadOS 15.0.1.

sicaboy commented 2 years ago

Any plan of fixing this?

mischasigtermans commented 2 years ago

Same here, background activity are disabled for Telegram but somehow Telegram manages to run background activities anyway. I use this as main chat app, but this battery drainage is ridiculous compared to i.e. WhatsApp.

8.2.1 - iOS 15.1

image

nasiralamreeki commented 2 years ago

Background battery use by telegram is unacceptable. Telegram uses more battery on iOS than any other app and runs a lot in the background.

ali-fareed commented 2 years ago

In 8.2 and later all message-related background activity is performed in a dedicated process that performs selective message synchronization (in contrast with the previous implementation where the app synched everything, including channels and large groups). After internal testing we saw a large reduction of battery usage compared to the previous versions.

To help in debugging this issue please confirm that when the iOS Battery screen is in "Show Battery Usage" mode, the label under Telegram displays "Notifications".

ffix commented 2 years ago

To help in debugging this issue please confirm that when the iOS Battery screen is in "Show Battery Usage" mode, the label under Telegram displays "Notifications".

The label under Telegram displays "Background Activity" on my device. Telegram 8.8.2, iOS 15.1.1.

fttx commented 2 years ago

Yes, it shows Notifications (v8.2.2), but it still the # 1 app for battery usage:

IMG_529B9904FFC8-1

At this point, I guess that is due to the fact that is the app I use the most

dtimekeeper commented 2 years ago

So I switched back to Telegram from Nicegram 2 days ago and I think I can confirm for myself the prior idle battery drain is solved because my battery drain graphs are straight horizontal when not in use.

It does say Notifications for Telegram as @ali-fareed said, and I am seeing no idle battery drain like it did before.

@fttx I think yours might be a combination of the Notifications background running (without battery drain) plus actual usage of the app. Do you have an Airtag? That also caused idle battery drain for me for 'Find My' until I removed the airtag.

fttx commented 2 years ago

@dtimekeeper thank you, yes, I have an Airtag. Did you remove it from the account, or did you physically remove it? In either case, what's the point of having one? 😅

dtimekeeper commented 2 years ago

@dtimekeeper thank you, yes, I have an Airtag. Did you remove it from the account, or did you physically remove it? In either case, what's the point of having one? 😅

I know eh? I removed it from my account entirely. No harm in removing it from your account and seeing how it affects your battery. It's kinda sad.

PhotonQuantum commented 2 years ago

To help in debugging this issue please confirm that when the iOS Battery screen is in "Show Battery Usage" mode, the label under Telegram displays "Notifications".

Confirmed, the label says "Notifications" and still experiencing unacceptable battery drain.