TelegramMessenger / Telegram-iOS

Telegram-iOS
5.88k stars 1.57k forks source link

iOS 14 notifications preview #428

Open samermurad opened 3 years ago

samermurad commented 3 years ago

Checklist

Description

A week ago, notifications preview stopped working on my iPhone, now all the notifications just show "You have a new message"

I have checked all the possible notification options When Locked/Always all channels and everything that might have to do with the notifications settings.

I even deleted the app and kept it that way for three days so the Push notifications permissions reset (they reset after 24h as far as I know, meaning if you re-install an app in that time frame the iOS system will not prompt for permissions if previously provided)

still nothing helped; It is also important to note that the same setup of settings exists on my iPad, so only when unlocked etc. and there, that behavior works as intended, so the notifications are hidden unless I unlock my iPad, and then I can see the content of the messages.

both devices have the latest software, both telegram and iOS.

Environment

Device: iPhone 8 plus /iPad Pro 12.9"

iOS version: 14.2

App version: 7.2.1

Note

I used to be a full time iOS developer, so Im more than willing to help with the notification bug, I guess there is an error with the notification extension (if there is one?) maybe it's being blocked or not getting it's access to the telegram api correctly refreshed and is somehow stuck in that state?

Like I said, I'm willing to help you fix this if you'd like, this bug is driving me nuts, and I somehow understood from somewhere on reddit that it's a known bug which you are not intended to fix? sounds weird. Anyways, thanks in advance, let me know if there is anything else I can do to help

ali-fareed commented 3 years ago

Next time it starts happening, please connect the device to Xcode and open the device console. Alternatively, trigger sysdiagnose: https://gist.github.com/danieleggert/587a4b5179cbd38492729e8808693cbe

Ask someone to send you a message, filter the console output by "ph.telegra.Telegraph.NotificationService" and look for errors.

In our testing, restarting the device fixes the issue every time. According to the available device logs, the iOS simply does not launch the notification service process in response to an incoming notification. We were not able to understand why yet.

guidedways commented 3 years ago

Same issue. Telegram is the only app doing this.

sdtaheri commented 3 years ago

Been having the same issue since two days ago after the latest update.

exp111 commented 3 years ago

Have the same problem after the 7.5 update. iPhone 8 on iOS 14.4

tborychowski commented 3 years ago

A full reboot fixed it for me.

amirtvs commented 2 years ago

Hello I have the same issue on IOS 12.5.5 / iPhone 6 / Telegram 8.6 (23018)

the weird thing is it's only happening on one of my accounts!