Comments (10)
I have been doing some quick tests with the tag
attribute in the Notification
object.
- I can arrange group and individual chats, so just one notification is shown for the same chat
- The problem is that each time you send a notification (new message), the screen is lighted and the sound is played (unless the phone is in silent mode).
So my idea is:
- Group notifications with the
tag
property. - Only send a notification if there are no pending notifications for the chat. That means that you will get the first one (maybe the second one and say "multiple messages"?), and then no notifications are sent for the rest of the messages.
- Or even better, do the second point, but put a timestamp, so if I get a new message in a chat which the shown notification has been living for more than ¿5 minutes? make the notification again.
thoughts? :)
from webogram.
Third option sounds good to avoid over notifying the user, but how is that going to work on desktop?
Probably on desktop you want to have them all.
from webogram.
Sniffing user agent for (mobile || tablet) ?
from webogram.
Sniffing UA is not clean.
Probably the first thing to do is group notifications for everyone, and then create a setting to always notify or just notify once.
from webogram.
UA sniffing is not clean but it is the way we can check if we are in a mobile/tablet/desktop.
I think grouping is the first iteration, and I would go with not bothering the user if a notification for the same chas has arrived in the las 5 minutes. And keep the foundation for next iterations.
from webogram.
Sounds good for me.
@zhukov what do you think?
from webogram.
So the user will not know about new messages, except the first one?
from webogram.
And notified again in 5 minutes if there is new messages. The thing is that I don't know how that work for desktop. The important first step is to group notifications, which doesn't affect desktop.
from webogram.
Anyway, we can propose enhancements to current API in case we do not find these behaviours useful.
from webogram.
UA sniffing is not clean but it is the way we can check if we are in a mobile/tablet/desktop.
What about Media Queries? Could be accessed via JS and if DPI and Size fits, the device could be detected.
from webogram.
Related Issues (20)
- T
- T
- access and downloading self-destructing videos over telegram web
- Unresponsive Support service. HOT 1
- Media no longer displays // code: 406, type: "FILEREF_UPGRADE_NEEDED"
- File download fails HOT 1
- How to open Link telegram on web version
- Telegram app on Chrome Webstore take much time in generating keys
- Bug in web.telegram.org HOT 4
- Valid username is generating error HOT 1
- In the new Design the Chats don't update HOT 1
- Missing Channel Info Menu (in v0.5.7 on FFOS only)
- UPDATE_APP_TO_LOGIN ERROR HOT 5
- Hi
- Increase the usage of compound assignment operators
- Question about Login?
- Don't drop the project
- Remove joined notification once for all HOT 2
- I've been banned from sending messages in Telegram anyone can help please
- App id / NO fork mirror
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from webogram.