PhilippC / PhilippC/keepass2android

[FEAT] See buttons directly within notifications without expanding it and add "Close Database" to "Database unlocked" notification

Open
#2,799 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
C#
Stars
6.2k
Forks
478
Avg merge
1h 4m
Merged PRs (30d)
2

Description

Context

A long time ago, under Android 8, Keepass2Android notifications had options directly accessible in the notification:

Image

With newer Android versions (e.g. 14), we need to expand the notification to see the buttons. After using keepass2Android and pasting something in the app or website I want to access, my usual routine is therefore:

  • Slide finger down from top of screen to see notifications
  • Expand "KeePass: Unlocked" notification to see the options
  • Select "Lock Database" option
  • Wait for next Keepass2Android notification
  • Expand "Keepass: Locked. QuickUnlock Enabled" notification to see the options
  • Select "Close Database" option

Suggestions

1) Provide a Close Database option in the "KeePass: Unlocked" notification, in addition to the "Lock Database" option
2) Provide the ability to see buttons within notifications without expanding them

Here's what a Google AI search had to say about this:

To see buttons directly within a notification on recent Android versions without expanding it, you need to ensure the app developer has designed the notification with "inline actions" or "quick reply buttons" which will display directly within the compact notification view; you can usually check this in your phone's notification settings for each individual app by navigating to Settings > Apps & notifications > Notifications > [App Name] and looking for options related to "action buttons" or "quick replies" within the notification settings for that app.
Key points to remember:
App developer control:
The ability to see buttons directly within a notification is controlled by the app developer who creates the notification.

I went to Settings -> Notifications -> App notifications -> Keepass2Android Offline, but I don't see any already implemented options that would allow direct view of notification options. "Lock screen notifications" is "Show content", and in "Notification categories", all entries are activated.

End result

With these two suggestions implemented, the usage pattern after using keepass2android would become:

  • Go to notifications
  • Select new "Close Database" option on auto-expanded "KeePass: Unlocked" notification

And done!

I realize there are currently 70 issues to look at, and bugs are usually more important than new features or GUI adjustments, but hopefully this would be relatively simple to implement and the "benefit vs. effort required" ratio could be high enough to give this feature issue a good place in the priority pile... (I'm a software engineer with decades of experience, but unfortunately never touched mobile app development so far).

Thanks for all of your great work!

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no files, tests, or entry points. Start by locating the Android notification implementation and determine how the “KeePass: Unlocked” notification actions are created; done means it offers “Close Database” and exposes the requested actions in the compact notification where Android permits it.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, csharp
Domain
mobile-dev
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.