ubports / telegram-app

Unofficial Telegram App for Ubuntu Desktop & Mobile
GNU General Public License v3.0
55 stars 23 forks source link

No push notifications for channel messages #127

Closed GI9VANNI closed 6 years ago

GI9VANNI commented 6 years ago

Hello! Using your app on a Nexus 5 with Ubuntu Touch, I noticed that stickers notifications do not appear. I'm not talking about the smilies integrated into the keyboard, but about the Telegram stickers. Can you solve this problem?

criztovyl commented 6 years ago

Could you look out for "unknown type" (or something similar) in your push-client log? (/home/phablet/.cache/upstart/ubuntu-push-client.log) I think I saw such errors there but I am not sure.

GI9VANNI commented 6 years ago

I found 7 files named ubuntu-push-client.log.x.gz with x from 1 to 7. Do I have to attach them?

Flohack74 commented 6 years ago

Please attach only the latest file. 1 should be enough

criztovyl commented 6 years ago

Try .1, it's more recent then .7 :)

Flohack74 commented 6 years ago

Erm wait a second guys, are we talking about pop-up of notifications outside telegram, or messages inside telegram groups where stickers dont show up?

Flohack74 commented 6 years ago

Ok I think I saw something, when we introduced channel/supergroup support, we might have forgot something to patch in the helper :)

Flohack74 commented 6 years ago

Push helper does not know about: payload:{"message":{"loc_key":"CHANNEL_MESSAGE_TEXT","loc_args":["...","..."],"custom":{"msg_id":"495","channel_id":"1003872209"}},"notification":{"tag":"chat","card":{"summary":"...","body":"...","popup":true,"persist":true},"sound":"buzz.mp3","vibrate":{"pattern":[200,100],"duration":200,"repeat":2},"emblem-counter":{"count":57,"visible":true}}} This is true for channels only, supergroups are fine.

Flohack74 commented 6 years ago

@GI9VANNI I can send you a test version to try if it works for you now.

GI9VANNI commented 6 years ago

The test version works!