Tdesktop: Option to disable mobile sound/vibration notifications when using Desktop

Created on 23 Nov 2014  ·  104Comments  ·  Source: telegramdesktop/tdesktop

Hi, when using Telegram Desktop is it possible to silence out the notifications on the phone?
There are no notifications on the phone, actually they are dismissed successfully, but for every received message I hear the sound/vibration (sometimes it is cut out in the half, as it has been "cancelled").

api issue enhancement

Most helpful comment

The developers should probably take a look at how Slack works:

  • If desktop app is active: first notify in desktop app
  • If message(s) unread after X (like 30) seconds: notify in mobile app
  • On top of that (this would probably be bogus for Telegram): if still unread in mobile app, it sends an email notification

If would be even nicer if it also had some options for customization (for example: how long to wait before notifying in mobile app). And it could also account for whether or not there is any activity on the desktop in general – because if the desktop is completely idle, then the notification could go straight to mobile.

From: Christian Engel [mailto:[email protected]]
Sent: maandag 18 mei 2015 10:37
To: telegramdesktop/tdesktop
Cc: Andre van Vliet
Subject: Re: [tdesktop] Option to disable mobile sound/vibration notifications when using Desktop (#277)

That definitely needs a fix. I think you can assume to be in a conversion on the desktop if the mobile is locked and the mouse + keyboard is used on desktop, even if the app is NOT focused.


Reply to this email directly or view it on GitHubhttps://github.com/telegramdesktop/tdesktop/issues/277#issuecomment-102975615.

All 104 comments

That is possible and yes this is definitely needed. Its pretty annoying...

Yeah this is definitely a much needed thing. If it could be made in way like Facebook Messenger where it somehow knows when you were last active in the webbrowser rather than the app on the phone then avoids notifying on the phone. Right now Ive made a tasker script on my android that i can quickly enable to toggle telegram notifications, but still...

Right now there is a dirty workaround by muting the conversation on the phone for 1 hour, but we still need a good solution like Kocayine proposed.

Any feedback if the devs see this as a high priority change? I think many users do...

+1 but only if it's optional (Sometimes I don't turn off my office PC and just lock screen, so telegram stays open)
By the way, curently, if tdesktop is in focus, my phone recieves notification and dismisses it almost instantly. So instead of 'bzzzzzzzzz' it only makes 'bz' (idk how to explain it more correctly)

@Katzen-Gott My device (Nexus 5, Android 5.0.1) usually buzzes fully still, and is probably only 7/10 for dismissing notifications when the desktop application has focus or is focused (on WiFi or a solid mobile data connection, even), but even with short buzzes it can get annoying if you get a flurry of messages.
That said, I totally agree that it should be an optional feature. :+1:

+1
In "Line" it works in a way that if you are active in your Desktop computer, notifications get disabled in your phone. If you're away from your computer, 5 minutes later notifications start to come into the phone.

wouldn't this involve making a modification to the mobile app as well?

@kireledan You're totally right.
Let's bring @DrKLO and @telegramdesktop attention to this!

Any chance this kind of presence detection could be added in?
I'd love to automatically silence the vibration+sound on mobile when I've been actively chatting on desktop and vice-versa for desktop sounds when chatting on mobile.
In my opinion this is one of the best features desktop+mobile chat programs can have! :smile:

@kireledan @joshery420 It looks more like a server thing. Or even overall. At least on iOS, there is the push thing. And I'm not sure, that app can do anything with phone behaviour on pushes. And there is similar thing for androids (google push?), which shoud be considered as well...

@Katzen-Gott Oh there's definitely a server component to getting this working well. I wasn't trying to imply it was all inside the apps. :smile: I'm sure the mobile apps are using push notifications, but the apps still have to be setup to handle those notifications and they can adjust how they handle them based on other conditions (there's already a wide variety of notification settings on mobile, even)

I guess the ideal for me would be that if you're considered "present" on the desktop, mobile notifications would still show (until you viewed the message somewhere, of course) but wouldn't vibrate or make sound.
Likewise, if you were considered "present" on mobile the desktop app would show the popups in the corner (maybe?) but not make any sound.

This allows for easy switching between devices/platforms because the notifications are still visible, but not constantly buzzing the phone in my pocket when I chat on desktop or spam ding sounds through my desktop speakers just because I reply on my phone and don't have the desktop app focused.

For the record, my experience is based on the Windows desktop client and the Android mobile app.

@joshery420 I totally agree with you.

Any update on this? Its driving my insane. I'm now trying to manually disable the mobile session from my desktop app settings. Maybe that will mute the notifications. Still needs me to re-login on my phone when I go away from the pc. Very annoying.

@Paratron I usually turn off notifications within the mobile app when I'm at my computer. Works, but can be a bit frustrating if you're doing it often.

Yeah, I did the same now, too. The session cancelling was a bit overkill :)

This should soon be done right? :-)

Smart Notifications
Tired of buzzing notifications from active group chats? Sick of multiple notifications every time somebody forwards you a dozen messages? Getting notifications on mobile while chatting with the same person from your desktop? Fixed! Starting today, you will be notified only when it is necessary.
https://telegram.org/blog/captions-places

👍 great news.

Not works for me... Android app and desktop are updated.

When you are using the Desktop app and you mark the messages as "read" with the Desktop app, your phone stays quiet.

So it seems that this was sadly not part of the "Smart notifications" update :-/

No idea what you are talking about.

Current version has "smart notifications" (set max. x notifications in y minutes) and the phone stays quiet when you are in a conversation on the desktop app.

That's correct but only if the desktop app has focus.
I think the problem is all there: different opinions on what "in a conversation on the desktop" ultimately means.

Oh I didn't even notice that I don't get notifications on the phone when the app is in focus on desktop, because I always do other stuff on the PC, that way the app is never in focus when I'm chatting with someone.

That definitely needs a fix. I think you can assume to be in a conversion on the desktop if the mobile is locked and the mouse + keyboard is used on desktop, even if the app is NOT focused.

The developers should probably take a look at how Slack works:

  • If desktop app is active: first notify in desktop app
  • If message(s) unread after X (like 30) seconds: notify in mobile app
  • On top of that (this would probably be bogus for Telegram): if still unread in mobile app, it sends an email notification

If would be even nicer if it also had some options for customization (for example: how long to wait before notifying in mobile app). And it could also account for whether or not there is any activity on the desktop in general – because if the desktop is completely idle, then the notification could go straight to mobile.

From: Christian Engel [mailto:[email protected]]
Sent: maandag 18 mei 2015 10:37
To: telegramdesktop/tdesktop
Cc: Andre van Vliet
Subject: Re: [tdesktop] Option to disable mobile sound/vibration notifications when using Desktop (#277)

That definitely needs a fix. I think you can assume to be in a conversion on the desktop if the mobile is locked and the mouse + keyboard is used on desktop, even if the app is NOT focused.


Reply to this email directly or view it on GitHubhttps://github.com/telegramdesktop/tdesktop/issues/277#issuecomment-102975615.

That's exactly what is on the last comment that I think should be implemented. And this "X minutes" can be configured by the user. He spoke all.

+1 from me too. Also have to keep asking a colleague to stop his phone vibrating while he's using telegram desktop as it just constantly buzzing away in our office while he has his headphones on

I think this is possible: when a message comes in, first send notifications to currently active device or the last active device. If in 30secs the message is still unread, send notifications to every device.

+1
Why has this not been implemented yet? This problem is extremely irritating and makes chatting on Telegram a chore. I usually tell people to message me on other platforms instead when I'm on my desktop.

I dont think anyone from telegram is even reading this... i've had a load
of +1 emails but no comment from a telegram developer. Please someone take
a look... a lot of people are asking for this to be fixed.

On Wed, 15 Jul 2015 22:21 Tobias Umbach [email protected] wrote:

+1
Why has this not been implemented yet? This problem is extremely
irritating and makes chatting on Telegram a chore. I usually tell people to
message me on other platforms instead when I'm on my desktop.


Reply to this email directly or view it on GitHub
https://github.com/telegramdesktop/tdesktop/issues/277#issuecomment-121753089
.

Im pritty sure @telegramdesktop has read it quite often.. But just has not replyed to it..

I just realised this is a duplicate of a declined feature request: #36

Ha .. so hundreds of people want it but developers wont do it. Nice. Back to hangouts and whatsapp then

Wait, I might have misunderstood the meaning of that answer. They basically only said it's not a desktop issue... @telegramdesktop Would you mind pointing us to a place where we can file feature requests for telegram in general/the mobile client/server-side stuff?

I'm not involved with development, but I think this problem would be managed more efficiently server-side, by getting aware of what device the user is active on and thus sending push notifications accordingly.
I think it would be very hard to do the same client-side without specific support from server.

An idea (maybe not new):

  1. When a message gets marked as read, this event information starts from the active device, goes to the server and propagates to each connected device of the user (this is evidence).
  2. So... The event-message is associated with the source device (server knows) and so is the read-mark (suppose the server lets other devices know -- possible, maybe real, MAKE it real otherwise!).
  3. (The trick) Each chat message could be marked, not simply as read or not read, but also with a list of all the devices that have visualized the message.
  4. Now the client can determine the last active device.
  5. Show android notification, or pop-up or other alarm with 0 delay if this is the last active device, long delay (like 30sec or 3sec with silent notification) otherwise.
    An alternative to point 3. is keeping a table with device / last-read-timestamp association, like what Hangouts seems to do (then show on screen only the last active device timestamp as an icon following the last read message).

So you get notifications on the last device you used to read a message, then on others with a delay. Note that this is chat-dipendent, but we can solve it:

  1. When the user opens telegram, the server knows it is active and the event is associated with the device.
    ...etc.
    The user may not see this info, as not usefull, but the key point may be notifying each device (of the user) was last active.

Anyway, while the problem is not solved server-side, every developer should try to fix problems like this with some sort of duct tape.

Meanwhile, I simply mute my phone while I'm at the PC. Because is reasonable and because I still prefere Telegram.

+1
But here's something (maybe) interesting. I've been using the telegram plugin for pidgin (in linux), and it turns out that I don't get notifications on my phone when using it (regardless of the window having focus or not). It is not really behaving smartly, as (I think) I don't get notifications at all on my phone until I close the application on my desktop, but it's still better. Unfortunately, a couple of days ago the pidgin plugin started crashing as soon as I write a message.

Notifications are send to all devices, but only the last active device shows the notification. If you read the message, the notification is removed from the other devices too.

@auchri If I'm understanding what you're saying correctly it just isn't true.
Even if I'm regularly chatting on the desktop, if the desktop client doesn't have focus all of my devices notify with a vibrate or sound, even if it was only a second or two since my last message on the Desktop. ONLY if the desktop client is focused do the other devices not notify, at least for me.

Yes, that's true. But that's server related: https://twitter.com/telegram :)

Oh it certainly is, I'm just saying that your claim that "only the last active device shows the notification" isn't entirely true. :wink:
Thanks for being so active @auchri! Glad to have you around.

All official clients implemented some improvements month's ago: https://github.com/telegramdesktop/tdesktop/commit/dde1a5a6eb20cbae51b09eb1da0de39a91a99f06

I think this issue can be closed?

Huh, interesting. That's what I'd assumed had happened with the "Smart Notification" update, but it didn't seem to be the case in my experience. I'll test tomorrow, but I _think_ my phone still buzzes immediately if the desktop client doesn't have focus, which would imply that the delayed notifications aren't working right.

If I focus the desktop client within a couple of seconds the phone won't buzz. In other words if chatting is not my main task (almost never is) I still have to silence notifications to avoid annoying other people around. My personal opinion is that not all clients are equal. The desktop client is more equal than the others :wink: and should "capture" the notifications.
At least with an option, that's my use case.

Alright, I tested it tonight over maybe 50 messages between a pair of friends and I, so here's how it seems to be working for me.
If the desktop client is open AND has focus AND the chat receiving messages is open, only then will my other devices stay quiet.
However, if any of those conditions aren't met it seems like I get notifications on my desktop first, giving roughly a 2-4 second window (varying network and system conditions I'm sure) to focus the desktop app before all of my other devices notify like normal.
That means that even if I'm actively chatting in one conversation, if I don't switch to the other conversation(s) with new messages within that 4 second window, _all of my devices still buzz_.
This seems to be pretty similar to what @darknight7 described, so I'm assuming it's working the way it was intended.

I would posit that many people logged into Telegram on a computer aren't going to be there for just a couple of minutes. Many of us are at home or work, actively using the system for hours at a time possibly.
In my opionion, as long as the desktop app is logged in and running, if I've used my mouse/keyboard within the last maybe 5-10 minutes it shouldn't notify other devices.
Alternatively, if the desktop is "active" maybe the mobile devices can notify immediately but without making sounds or vibrating? That is, update the mobile clients and show the notification on the device, but do it silently. Not sure how much notification control is there on mobile platforms for something like that. @DrKLO

Also, tweeted about this thread, so hopefully it gets some attention, since this is my single biggest annoyance with Telegram right now.
https://twitter.com/joshery420/status/632810144082976769
@auchri I know this isn't under your control, but it certainly is related to what the desktop client considers an "active" user, so I feel like it's safe to keep open for now.
@telegramdesktop You might have a bit more control over this though, depending on how the active status is determined.

Please stop adding "+1". It won't make issue resolved any faster (or sooner), and it only bothers those who want to receive updates on the issue.
If you want to receive updates as well, there is "Watch" button at the top, you don't need to add a comment to start "watching" the issue.

For me there's not even a delay. As SOON as I receive a message -- often even when I have desktop telegram focused -- my phone plinks too. It's incredibly annoying. I don't want to have to log out of mobile telegram (and then have to log back in...) just to get it to shut up.

@vvoody On my experience, Wechat does simply notify everywhere or none if
you choose to disable phone notification when PC client is logged in.

On Wed, Oct 28, 2015, 14:44 vvoody [email protected] wrote:

+1

Wechat does well in this situation.


Reply to this email directly or view it on GitHub
https://github.com/telegramdesktop/tdesktop/issues/277#issuecomment-151740881
.

Yes please, this is one of the little details that matters. UX matters.

@Jamesits Nope. Wechat use different ways to login same account at same time. Say, if you want to use Wechat on PC, you have to use Wechat on your phone to authorize the PC client. In this mode, if you mainly use on desktop, e.g. chatting in work time :D, by default Wechat will mute mobile app. But for Telegram, both mobile app and desktop app are always online, which means receive notifications on both sides. That is annoying.

@vvoody In my use case, I log in Wechat Mac client every morning (it disconnects automatically at night when my Mac falls asleep and AC power is cut off, which is another annoying story) like any other IM I use (Hangouts, Telegram, QQ, etc.), then if I need to leave my computer, I lock it and take my phone around. So if I disable notification on phone when logged in on computer, I got nothing when I'm away with the phone; if I enable that, my computer rings and my phone vibrates when I'm in front of my computer. What's more, if I read a message on my computer, it remains unread on the phone. So basically to me, the notification model of Wechat is unusable.

Not sure about wechat, but the model of Google Hangouts is working great for me. It detects which one I'm last active, then only push notification to that device. All other devices will update the read/unread statuses periodically.

@Jamesits make sense. But at least, Telegram's way is super annoying, absolutely.

This started annoying me 30 seconds after installing the desktop app for the first time. Can't believe Telegram Dev team isn't working on a fix.
Please fix.

I got a new phone and I'm super annoyed this is not an option. I have Tdesktop visible at all times but rarely active. However, active or not there's a chance I'm not looking at the screen. So the correct thing is what Slack does, described by @SH-Andre above (notify on last used device, waiting for a while before notifying other devices).

(edit: the initial description of the bug is outdated, but the title and the overall problem explained in other comments remain)

Totally agree with @DiThi

Guys and gals, just a reminder.
@auchri mentioned this before, but as much as we'd like this it isn't just a client issue.

If you want some sort of priority between clients, pretty sure we'll need to get it implemented on the server side, and to get that message through we'll need to get the message through on the main Telegram Twitter.

Get to tweeting, everyone! ;)

P.S. I 110% agree with @DiThi's assessment. Slack has it right.

@joshery420 You're right. We have to ask Telegram to implement this in the servers. Is there any other way to ask for this to Telegram other than Twitter?

@DiThi yes, the "Ask a question" feature in one of the official clients.

Oh hey, that might be nicer. Everyone, you know what needs to be done haha.

Dear future +1 commenters

As said before, the developers are probably well aware of the popularity of this issue. Every time somebody posts a +1 comment, almost a hundred people subscribed to this issue receive a notification. Most of us probably via e-mail like me. Since they add little value to the issue and a lot of annoyance, please refrain from posting them. Thanks!

To add to what Zero3 said, click the "subscribe" button instead of commenting.

Also, to reiterate, this is not telegram desktop's fault, but telegram's (the service itself). Every person that says +1 should contact telegram instead.

Tdesktop could add a button for simulating being in focus, but it would be a bad, half-assed solution (which can satisfy some subscribers here). The proper solution is what Slack does (described above: notify on last used device, waiting for a while before notifying other devices).

Has a solution for this been found?

Despite what I said previously, now I think it would be perfectly acceptable if Telegram Desktop fakes its active status: e.g. while I see the window I have a different window active such as the browser or an editor, and TDesktop says "I'm active!" to the server for e.g. 10 minutes, but acts as usual for receiving notifications etc.

Do something! That issue/feature request exists for over 2 years!

Just do as Slack does. If you receive a message on desktop and you don't have the Slack pc app open for few minutes, it get notified on the smartphone.

That'd be also like WhatsApp and is imho a great way of not over-notifying the user

Ad far I see, right now you have just few seconds to bring the app on top to avoid the smartphone to vibrate. So seems like there's already a timer set. They should just increase it (maybe make it a customizable parameter)

I am happy to see this, and also sad to see this. Being over-notified on all devices when I'm active on a given device is super annoying. I tried muting notifications on my mobile, but it also muted notifications for that person on all other devices, too. Per-device notification control needs to happen. :(

This, so annoying to constantly have mobile devices going PING just because tabbed away from telegram on desktop.

It also annoys me every day :(
normally I mute the specific person who I'm writing with to prevent this. but Sometimes I forget to unmute them and then they get mad at me if I don't see new messages later.
On 4 May 2015 the "smart notifications" were mentioned. But I don't get how it should work or where the settings are to activate it.
And on 18 May 2015 the "set max. x notifications in y minutes" setting was mentioned, which could help a little bit, but I only see that option for groups. But that won't fix the problem completely :(

Yep.. beep beep all the time.. and I miss also option for "notification grouping" like don't notify each message inmediatelly - notify only if last message was received eg. minimal 30s before. etc..

Hi, can someone take a look on this feature, please? It's really annoying

@Darktemp the smart notification is of no use here. It resets the count when the msg is read.

Any news on this issue? It's still occurring and annoying as ever :(

Comments bringing nothing new to discussion will be deleted. Use reactions.

+1.
I really need this feature.
The current notification feature makes my mobile battery run out very fast.

Do you need help in delivering this feature? Probably I could write some code for you to implement it finally)

@andrii-r This is an api issue, and I am afraid, that we can't do anything :(
I don't know how to reach out to the api developers.
"Ask a question" not working at all: (((((

This feature is essential.
If it's not fixed, I swear, I'm gonna rage over it one day and get rid of the app.

If it's an API problem, who do we bug, or how can we contribute to fixing it?

@ivancuric contact support or bug telegram on twitter

In new beta Telegram X for Android:

  • You will no longer receive accidental notifications, when you are chatting on the other device

It's what we talk here about, or only when you are directly typing?
Can any one comment it?

I'll throw a guess here: That means that if you are chatting one of the devices, the notifications on other devices must be deferred for a few seconds and by some reason Telegram X previously wasn't complying to this rule and was not deferring the notifications, instantly triggering the sound / vibration, even if the other device is still active and must be “prioritized” to receive this notification first. But again, that's just a guess.

please fix

@ivancuric contact support or bug telegram on twitter

Did both multiple times. No response.

also there may be a feature for manual disabling notifications for each group/channel/etc for different platform/clients
For example:
chat 1: notifications disabled on desktop, but enabled in mobile app
channel 1: notifications enabled on desktop, but disabled in mobile app
channel 2: notifications disabled on desktop, but anabled in mobile app

SIX FUCKING YEARS AND STILL NOT FIXED??????????? THIS IS INSANE!

Why is this still not fixed? Even Viber, Telegram, Facebook Manager, Hangouts has this feature. Doesn’t it annoy anyone when you are online on PC, then your smartphone constantly makes sounds.

It does drive me mad!

Is there any news about when this will be fixed?

Is there any news about when this will be fixed?

Forget it. It won't be fixed.

Is there any news about when this will be fixed?

We should collaborate and spam this message everywhere: creating hundreds of this issues, pull requests, commentaries, if you'll stay quiet nothing will change

what a joke

Is there any news about when this will be fixed?

We should collaborate and spam this message everywhere: creating hundreds of this issues, pull requests, commentaries, if you'll stay quiet nothing will change

if you do that be sure i will report you to github.

Is there any news about when this will be fixed?

We should collaborate and spam this message everywhere: creating hundreds of this issues, pull requests, commentaries, if you'll stay quiet nothing will change

if you do that be sure i will report you to github.

You maybe report one on my fake accounts, but I'll create another thousand of them 😂

@megapro17 Be sure to start with pull requests that fix the issue.

@megapro17 Be sure to start with pull requests that fix the issue.

I'm not with megapro17 but if I understood the problem correctly, shouldn't this be fixed in the server side which is not gonna be open sourced by telegram yet?

This is beyond ANNOYING, can we have an official answer saying if this is ever going to be implemented?

Came here to post the same damn thing, only to find it's never been implemented. I only started using Telegram on my phone recently, but the notifications are the incredibly fucking annoying; why the hell do they need to take up half the screen, and aren't actual proper Android notifications (so I can't control them, and they don't appear in the notification drawer)?

I don't mind the notifications on my desktop computer because they're tiny and out of the way, but on the phone they are just far too disruptive.

On the plus side I've found one easy way to disable Telegram notifications on my phone only; uninstall Telegram from my phone.

@megapro17 Be sure to start with pull requests that fix the issue.

I don't think that this can be fixed in client, this is a server side change

@andrii-r This is an api issue, and I am afraid, that we can't do anything :(
I don't know how to reach out to the api developers.
"Ask a question" not working at all: (((((

Then how telegram-x doesn't have this problem?

@SmartManoj Could you kindly provide a link to Telegram-X iOS client for me to try it out?

@SmartManoj Could you kindly provide a link to Telegram-X iOS client for me to try it out?

there is no telegram x ios anymore, telegram x ios becomed telegram ios long time ago.

@Aokromes But I encountered op's issue when I'm using Telegram-iOS and telegram-desktop. So shall I say the problem is still not solved?

Any news?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

FunctionalHacker picture FunctionalHacker  ·  3Comments

LeonTheOriginal picture LeonTheOriginal  ·  3Comments

luisalvarado picture luisalvarado  ·  3Comments

TheAppService picture TheAppService  ·  3Comments

hosseinab picture hosseinab  ·  3Comments