ubports / telegram-app

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

[xenial] Notifications don't work #174

Closed zubozrout closed 6 years ago

zubozrout commented 6 years ago

Hello, I've just tried building latest Telegram (2.5.3) - the master branch - with clickable and it worked like a charm. It is great I can finally use it on Xenial :+1:

However, I've noticed that I don't receive any notifications and if I agree on using Ubuntu One account nothing happens and still see the switch turned off the next time I enter the settings screen.

I've tried removing my Ubuntu One account from system accounts but even without it no prompt to enter credentials was shown.

Just adding this here as I haven't seen it reported anywhere yet though this may not be a Telegram issue but perhaps something related to Ubuntu 16.04 still not handling accounts well?

Flohack74 commented 6 years ago

Hmm need to see this... will be not easy to understand whats going on here...

zubozrout commented 6 years ago

Btw, I've just checked the log and I get this when trying to turn the notifications on in Telegram settings:

RequestAccess failed: QDBusError("com.ubuntu.OnlineAccountsUi.InvalidApplication", "Invalid client application")
updatesGetChannelDifference_slt: old pts:  137764 , new pts:  137765  for channel  1059487747
QDBusConnection: error: could not send message to service "com.ubuntu.Postal" path "/com/ubuntu/Postal/" interface "com.ubuntu.Postal" member "SetCounter": Invalid object path: /com/ubuntu/Postal/
qml: push - unhandled error:
Flohack74 commented 6 years ago

Is Telegram listed in system-settings where you can configure the notifications sound and popups?

zubozrout commented 6 years ago

@Flohack74 Unfortunately not. The only app that is listed in accounts is a Contact app (for Google). For example Calendar app seems to suffer from same issue - as referenced above ^.

Flohack74 commented 6 years ago

Hmm then smth went wrong with the installation or idk. Telegram push function is registered in the app manifest normally.

zubozrout commented 6 years ago

Well this is apparently happening to at least one other Xenial user as well - that is having only Contacts app listed in the Accounts settings. Cite from UBports QA and testing: "Only contacts app is listed under system settings -> security&privacy -> app permissions -> online accounts"

So I wonder what may have gone wrong. Are there some system changes that may have broke it? But why would Contacts show up normally then?

Flohack74 commented 6 years ago

I am closing this here, on Telegram side nothing changed and this is probably related to https://github.com/ubports/ubuntu-touch/issues/602