{"id":6382,"date":"2020-08-29T20:07:14","date_gmt":"2020-08-29T17:07:14","guid":{"rendered":"http:\/\/mummila.net\/kommentit\/?p=6382"},"modified":"2020-08-29T20:07:14","modified_gmt":"2020-08-29T17:07:14","slug":"mobile-devices-receive-ghost-notifications-for-already-read-messages","status":"publish","type":"post","link":"https:\/\/mummila.net\/kommentit\/2020\/08\/29\/mobile-devices-receive-ghost-notifications-for-already-read-messages\/","title":{"rendered":"Mobile devices receive ghost notifications for already read messages"},"content":{"rendered":"<h4>Summary<\/h4>\n<p>Mobile devices receive &#8221;ghost&#8221; notifications for already read messages, when set to receive notifications &#8221;when Away or offline&#8221;, and receiving user is set to be Away.<\/p>\n<h4>Steps to reproduce<\/h4>\n<ol>\n<li>Set &#8221;Mobile Push Notifications&#8221; to &#8221;Trigger push notifications when&#8221;: &#8221;Away or offline&#8221; (and send &#8221;For all activity&#8221;)<\/li>\n<li>Using web interface on desktop, set your status to Away<\/li>\n<li>(Still in the web interface) receive a message in the currently open channel (which immediately marks it read)<\/li>\n<\/ol>\n<h4>Expected behavior<\/h4>\n<p>Nothing happens on the mobile device (no notification).<\/p>\n<h4>Observed behavior (that appears unintentional)<\/h4>\n<p>The mobile device receives a notification about the already read message. The notification immediately disappears. If you weren&#8217;t looking at the device, you&#8217;re left wondering why it alerted you.<\/p>\n<h4>Other info<\/h4>\n<p>If your status is set to Online instead of Away (at step 2), the mobile device receives no notification (as expected). If &#8221;Trigger push notifications when&#8221; is set to &#8221;Online, away or offline&#8221; (at step 1), the mobile device receives no notification irrespective of your Online\/Away status (also as expected).<\/p>\n<h4>Environment Information<\/h4>\n<p>I&#8217;m self-hosting Mattermost 5.26.1 with self-hosted MMPNS 5.22.4. Mattermost Mobile is at version 1.34.0. My mobile devices have Android 10 (Samsung) and Android 7.1.2 (LineageOS 14.1).<\/p>\n<p>I don&#8217;t know if this is an issue with the client or the server; I can re-report against the latter if appropriate.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Mobile devices receive &#8221;ghost&#8221; notifications for already read messages, when set to receive notifications &#8221;when Away&#8221;, and user is set to be Away.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8860],"tags":[12572,22552,14049,10718],"class_list":["post-6382","post","type-post","status-publish","format-standard","hentry","category-vianhallintajarjestelmat","tag-android","tag-lineageos","tag-mattermost","tag-samsung","sijainti-github"],"_links":{"self":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts\/6382","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/comments?post=6382"}],"version-history":[{"count":1,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts\/6382\/revisions"}],"predecessor-version":[{"id":6383,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts\/6382\/revisions\/6383"}],"wp:attachment":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/media?parent=6382"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/categories?post=6382"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/tags?post=6382"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}