Public bug reported:
Why does ubuntu-push treat its messages differently than SMS messages?
- If receiving an SMS message while locked, the screen is turned on and
the notification is shown above the greeter as well as in the indicator.
- When receiving a push message while locked (today), the screen is left
off, no notification is shown above the greeter, but the indicator does
still show the message.
Why the difference? There is actually explicit code for this behavior
in client/service/postal.go:
if output.Notification.Card != nil && output.Notification.Card.Popup {
if svc.unityGreeter.IsActive() {
// Screen is locked, ensure popup is false
output.Notification.Card.Popup = false
}
}
I would have assumed that that block would not exist at all.
I could imagine an argument for some push messages being more
"sensitive" than others. But surely some aren't more sensitive than
SMS. For example, Telegram. It should be treated identically I would
think. So rather than a blanket "no push messages show a notification",
we'd add something to the push protocol that says whether the message is
sensitive (if indeed that's the reason for this code).
As for turning the screen on, hopefully you don't have to bother
explicitly doing that once a unity8 branch lands that automatically does
it when displaying a notification [1]. You'd just have to stop setting
popup=false.
[1] https://code.launchpad.net/~mterry/unity8/turn-on-screen-when-
notifying/+merge/267592
** Affects: ubuntu-push (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1483697
Title:
Should still show notifications when phone is locked
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-push/+bug/1483697/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs