overtake / TelegramSwift

Source code of Telegram for macos on Swift 5.0
https://macos.telegram.org
GNU General Public License v2.0
4.9k stars 818 forks source link

App shown as active 24 hours a day in Screen Time #693

Open matteocontrini opened 2 years ago

matteocontrini commented 2 years ago

Hello,

it appears that the app is sometimes being detected as always active by macOS' Screen Time, even when it's in the background, and therefore it's counted as being in use 24 hours a day.

Here's what I'm seeing for last week, for example:

image

Here are other reports of the same issue: https://www.reddit.com/r/MacOS/comments/ps0fo4/telegram_on_background_counts_as_active_in_screen/

The problem happens with both macOS 11 and 12.

overtake commented 2 years ago

Weird 🥲

On Sat, 30 Oct 2021 at 15:05, Matteo Contrini @.***> wrote:

Hello,

it appears that the app is sometimes being detected as always active by macOS' Screen Time, even when it's in the background, and therefore it's counted as being in use 24 hours a day.

Here's what I'm seeing for last week, for example:

[image: image] https://user-images.githubusercontent.com/2164763/139533884-04fd75e7-e8b4-4dc4-90bb-92a48ff44b67.png

Here are other reports of the same issue: https://www.reddit.com/r/MacOS/comments/ps0fo4/telegram_on_background_counts_as_active_in_screen/

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/overtake/TelegramSwift/issues/693, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJT2MVU75XFPSEJR5WWEUDUJP3THANCNFSM5HBCDKJA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

luojunyuan commented 2 years ago

I have same problem. Download from App Store. Telegram is running background without window or Mac turn to sleep mode. The screen time still be counting unless fully exit Telegram.

MacOS Monterey 12.0.1 M1 Telegram version 8.1.3 (222037) AppStore

https://www.reddit.com/r/MacOS/comments/ps0fo4/telegram_on_background_counts_as_active_in_screen/ https://www.reddit.com/r/mac/comments/lpszxe/macbook_air_m1_incorrectly_calculates_screen_time/

image
neseleznev commented 1 year ago

Same here. I'd like to add that this wasn't the case for me, but happened quite recently — after update with Premium. Since then, I have 23h 56-59m active time everyday

image
dawkrish commented 1 year ago

what is the fix of this

outcoldman commented 6 months ago

I have the same issue. Only Telegram occasionally will be 100% usage while macOS is in sleep mode.

BenShelton commented 4 months ago

Started seeing this again since 24th Feb, usage has been 24h a day since and it blocks any other app from recording activity which is annoying.

I deleted the app entirely and it still kept tracking time. After rebooting my machine it finally stopped.

I'm going to switch to the web version instead, I feel uneasy that this is spinning up some background process that is persisting way longer than it should.

vanushah commented 3 months ago

Same here. App reports 24 hours of screen time.

m1c1b commented 1 month ago

Same.

10.12.2.262594 Stable Sonoma 14.5