Telegram-foss: Notification lacks actual message text on Android Pie

Created on 17 Feb 2019  Â·  18Comments  Â·  Source: Telegram-FOSS-Team/Telegram-FOSS

The notification shows up but the message content simply says "Message" instead of actual message text:

https://imgur.com/a/Ic1BhWb

This problem is also present in the "official" (DrKLO) Telegram app.

Other applications (e.g. Gmail app) doesn't have such issue.

Configuration:
Telegram-FOSS version: v5.3.1 (1497)
Android: Pie
Local Passlock: Disabled

needinfo

All 18 comments

Is this a secret chat?

No it's public channel.

The same problem is present for chat groups and private messages (non-secret) too.

  1. Make sure telegram is not locked by passcode (settings > privacy and security > security > passcode lock)

  2. There is an option in the settings to preview the message or not (settings > notifications and sounds > notifications for chats > choose messages you want to be previewed > turn on message preview.

@M86xKC

  1. It's disabled.
  1. I couldn't find this. Searching for "Preview" in settings doesn't show up anything. Is this available on Android Pie?

BTW, I haven't done any customization to Telegram notification, neither to global notifications.

I'm might give it try and debug it. It seems https://github.com/Telegram-FOSS-Team/Telegram-FOSS/blob/61b5c143e59bd87c0df7e82e09688aa3aaa5daa3/TMessagesProj/src/main/java/org/telegram/messenger/NotificationsController.java#L2615 and https://github.com/Telegram-FOSS-Team/Telegram-FOSS/blob/61b5c143e59bd87c0df7e82e09688aa3aaa5daa3/TMessagesProj/src/main/java/org/telegram/messenger/NotificationsController.java#L3246 are places that the notification is being created. Maybe some tweaks helps to get it working.
Your suggestions are also very welcome.

I'm new to Android development though. Should I download Android NDK 16b as build documentation says or for targeting Android Pie correctly, a newer NDK would be better?

@Bubu What info is needed? I would be happy to provide them.

@nickaein it seems to only happen for you. So some way to reproduce this would be needed.

@Bubu I see. My initial assumption was that this issue occurs on Android Pie. ÙŽAre there cases that dismiss this?

I can test on a Pie device soon, thanks for the pointer.

Hello,
I have a general question to ask. First let me say:
• I'm new to Telegram
• I'm new to Pie (its OxygenOS fork)

Basically, how should I configure notifications?
I have been directed to the instructions for Oreo, which don't seem to apply.

BTW, I made a big jump in Android versions.
I went from my Paleophone running KitKat to a OnePlus 6T with Pie. Yup, that's version 4 to 9.

Perhaps this gives me less understanding than most users.

Any help would be appreciated.
TIA,
Doug

I'm getting something similar - the device receives message fine (the app has the messages) but the only notification that is visible is the persistent service for push messages (since I'm running without gapps).

Should I chuck that in another ticket?

@nroach44 did you enable settings > Notifications and Sounds > Other > Background Connection ?

@M86xKC Yes - the app was receiving the messages fine, but wasn't notifying. In this case it was because the behaviour of the "do not disturb" times had changed between phones - so I was in DnD mode, and the phone wasn't showing notifications as a result.

Cheers though!

@Bubu I'm having this issue but only with secret chats: notifications simply read "You have a new message", without even specifying the sender. Is that intended behaviour or a bug?

@Pannuba The user can hide the notifications content in the lockscreen, but not when the phone is unlocked, which is the ideal behavior. However, Telegram hides the content even when the phone is unlocked.

Hi!

I was having the same issue and then, when I clicked at notifications for chats > private chats, it showed a lot of options, including message preview. It was disabled, I don't know why.

Same issue.

  • Custom for one chat (with my own telegram-send bot)
  • Message Preview Enabled.
  • Tried with every importance.

My "soloution":
I reset all notification preferences in the main menus, and then redid my custom notifications. That worked for me. Maybe there was some global overriding my custom preferences.

Hi!

I was having the same issue and then, when I clicked at notifications for chats > private chats, it showed a lot of options, including message preview. It was disabled, I don't know why.

This work for me too, thanks

Was this page helpful?
0 / 5 - 0 ratings