Skip to content

Dismiss all notifications stops working after a while #1929

@scatterthought

Description

@scatterthought

Have you checked if an issue already exists for this bug?

  • Nobody else has reported this bug before

Have you tried restarting your device?

  • I have tried restarting my device and that did not help

What happened that you did not expect?

I've had the Dismiss All Notifications action working on my Samsung Tab S9 for a long time. When I updated Keymapper to the current release on Google Play, the action failed with a toast message "Denied notification access permission!" The Keymapper log says "Root access denied" when this happens.

There are no error messages reported in my keymap that uses the action, and Keymapper has Notification Access granted in the Android settings. My tablet is not rooted.

I tried rebooting and I tried switching to the beta program, but the problem remained. I then discovered that if I clear all data from the app and grant permissions again, the Dismiss All Notifications action will work for a brief period of time, then fail again with the same errors. The same thing happens if I uninstall and reinstall the app.

It seems to me that the app is losing notification access, even though Android still shows it enabled and the app doesn't detect that access has been denied. I've tried toggling Notification Access off and on again, but that doesn't fix the problem.

I trigger the action with a launcher shortcut, and there are no constraints.

Thanks for your great work!

What did you expect to happen?

I expect that Dismiss All Notifications will continue to work.

What would the developer need to do to reproduce the bug?

  1. Make a keymap that uses the Dismiss All Notifications action with no trigger or constraints.
  2. Check the "Allow other apps to control this key map with intents or shortcuts" option.
  3. Create a launcher shortcut.
  4. Test that the action works.
  5. Test the action again daily until it stops working (it took about 24 hours to fail the last time).

I'm still doing more tests, and will add to this report if I gain more details.

App version

4.0.0-beta (and also the current Google Play release, which I think was 3.7)

Android version

Android 16

Device model and manufacturer

Samsung Tab S9

Extra info

  • My device is rooted

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions