nproth / pin

A minimalistic note-taking app for android utilizing your phone's notification area.
GNU General Public License v3.0
116 stars 7 forks source link

[Request] Option to hide the icon in Status bar and notification from lockscreen #6

Closed chilliger closed 5 years ago

chilliger commented 5 years ago

It would be nice to have a option to hide the app icon in the status bar. You only see the notes when you drop down the notification panel so the status bar doesn't get cluttered. Also hidding the notification from the lockscreen would be nice. I do not know if it is possible to implement this through the native app notification settings. What do you think?

nproth commented 5 years ago

On newer versions Android allows you to hide notifications on the lock screen on a per-app basis. You can find the settings under Apps > p!n > Notifications in your Settings-App. Or you can long-click p!n's notification and then - depending on your version of Android - select more settings or a small info icon.

On Android 8.0+ you will see two so-called Notification Channels labelled Newly added notes and Wake up alert instead. You should leave them enabled in order for p!n to work properly but when you select them you can set lock screen accessibility and visual intrusion individually. When you change Behaviour to Show silently and minimize the status bar icon will disappear but then you will not receive any alerts from notes as they are posted to the second channel when they wake up and behave according to its settings.

Hiding the status bar icon without affecting the notifications priority is only possible through a 'hack': The app could provide an empty notification icon but it would eat up the same space as visible ones and would clutter the status bar all the same.

chilliger commented 5 years ago

@nproth sorry for the late response. Are those notfication settings you are talking about present in Android 8? I don't have a Behaviour setting there:

The closed source app Notable provides settings to do so:

nproth commented 5 years ago

Yes, on your first screenshot you can click on Newly added Notes and Wake up alert, not the adjacent Switches but on the labels themselves. This will bring up additional settings, specifically whether p!n's notifications are shown on the lock screen and with which priority those notifications are displayed. There you can change On the lock screen to Don't show notifications at all to hide notes on your lock screen. Also, setting Importance to Low will hide the status bar icon - with the side effects mentioned above.

chilliger commented 5 years ago

Ah I see. I think I like your implementation better because it is based on native android settings. I can work with that. Thanks. Your is going to replace the one from the play store now 👍