peter-iakovlev / Telegram

Telegram Messenger for iOS
3.23k stars 858 forks source link

Notification Badge Issue #303

Open elonfans opened 6 years ago

elonfans commented 6 years ago

We found that the application icon unread count is inconsistent with the chat unread count on the tabar.

The reason is the badge in remote notification is wrong:

notification example: { aps = { alert = "\U5c0f\U98de \U5218 sent a photo to the group Badcase"; badge = 444; category = m; "content-available" = 1; }; "channel_id" = 1194191687; "chat_from_id" = 531399565; "msg_id" = 1756; }

when app goes to the front, real chat unread count is 5 instead of 444.

SvenjaReissaus commented 6 years ago

This is because as of now, Telegram shows the number of chats with messages to count notifications. Therefor, 444 messages in 3 chats will only show as a badge with 3 notifications. Perhaps add support to chose whether to count Number of chats or number of messages for the badge as seen on Telegram for Android?

SvenjaReissaus commented 5 years ago

The feature has been implemented on Telegram for iOS. Navigate to the Settings menu, under Notifications, you can check whether show count of chats or count of messages

SvenjaReissaus commented 5 years ago

Request to close this issue