TelegramMessenger / Telegram-iOS

Telegram-iOS
5.99k stars 1.6k forks source link

Can't get badge count working in background mode #30

Open patriciy opened 5 years ago

patriciy commented 5 years ago

Assembling Fork configuration. Push messages seems to work fine. But in background mode I don't see badge counter on app icon is being updated. Stock telegram seems fine. Any special configuration needed for this?

shivanraptor commented 5 years ago

Did you change the Bundle Identifier?

In my case, badge count is displaying, but in the wrong count. I installed the official Telegram and my Fork version side by side, discovered that the badge count is always 8 - 10 more than the official version. Not sure why, I haven't changed related codes and the notification settings are the same between 2 apps (logged in the same Telegram account, of course).

patriciy commented 5 years ago

@shivanraptor Yes, I changed Bundle ID and group ID. No changes with related code too.

shivanraptor commented 5 years ago

Try to select Settings > Notifications and Sounds > Reset All Notifications and retry.

shivanraptor commented 5 years ago

See #34

patriciy commented 5 years ago

That's all reseted, no luck

shivanraptor commented 5 years ago

Problem still exists in release-5.6. No badge icon count in background mode. When comparing side-by-side with official Telegram App, the badge icon count is working in the official one.

patriciy commented 5 years ago

49