Hide message notification content when the app is locked#6902
Conversation
|
Thank you for your contribution! Here are a few things to check in the PR to ensure it's reviewed as quickly as possible:
|
|
@mxandreas another PR to check once you're back 😅 . We were also discussing this behaviour earlier and a valid point was whether we want to link the 2 options and only have this hiding of notification content option available if there's a PIN code, or if it should always be present (disabled by default) and the user can change it at any time. |
I am curious about the use cases or real life situations for this one. I understand the phone is unlocked (otherwise one could hide content in notifications, right), then a new message arrives and then you would not want its content to be shown? A few examples would be appreciated. |
|
I think when this was asked before it was for the case where you have notifications as heads up (so, displaying above everything else even if you don't open the notification drawer) and someone is looking at your phone/recording it somehow. So you want to know there is new content in the app, you just don't want to display the content unless you unlock the app. |
I understand that this can theoretically happen - you show your phone to someone and because of bad timing some sensitive message appears but for me this is an edge case. So, unless there is a very clear scenario in which it happens regularly and there is no workaround, I'd not spend time on it. |
|
We also said that it can be a user wish to hide the content of the notification from the OS, i.e. the notification content will not be leaked in the system notification history, or even possibly sent to third parties. It will please paranoid/privacy-focused users/customers to have such settings. But we could implement it later. |
|
das ist schön. 👍 |
|
@mxandreas besides the content hiding, it also fixes the issue that you can use the quick notification actions for replying to bypass the PIN lock of the app. |
|
Could we avoid another new setting and couple this tightly to the PIN lock. So, whenever you have activated PIN, the notifications won't show the content? |

Content
New setting (enabled by default, not shown when the app PIN code is not setup) that makes the app use the fallback notification (the "You have (count) new messages" notification) when the app is closed (i.e. locked).
Motivation and context
ATM you can still read and reply from the notifications on new messages even when the app is locked, which almost defeats the entire purpose of having an app PIN lock.
Screenshots / GIFs
Tests
Setup the "Screen lock" PIN code
Tested devices
Checklist