Skip to content
This repository has been archived by the owner on Jun 23, 2023. It is now read-only.

"Background work" notification is alerting and has misleading action button #5

Open
sersorrel opened this issue Sep 24, 2020 · 0 comments
Labels
bug Something isn't working

Comments

@sersorrel
Copy link

Describe the bug
The BACKGROUND_WORK notification created by getUpdatingDatabaseNotification is alerting by default (meaning it appears in the status bar as if there's something the user needs to act on), and also includes a misleading action titled "Loading…" which just launches the app when tapped.

To Reproduce

  1. Install the app
  2. Wait a while
  3. Observe occasional notifications from the app that just say "Loading…" and go away after a few seconds

Expected behavior

  • Apps shouldn't display notifications unless absolutely necessary (especially since the app's icon is quite recognisable, and users might worry that the notification indicates something they need to do something about)
  • Notifications which the user can't do anything about (and in fact doesn't need to know about at all) shouldn't show up in the notification bar
  • The "Loading…" text (notification_text_updating_database) should just be text, not a clickable button (and should probably be more descriptive, like "Updating…", to make it clear that the notification won't populate with useful information in the future)

I know Android restricts what you can do in terms of notifications when you're running a foreground service, so removing the notification may not be possible, but the "Loading…" text definitely shouldn't be a clickable button.

Screenshots
Hard to obtain one, since the notification goes away quite quickly.

Smartphone

  • Device: Moto G8 Power
  • OS: Android 10
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant