ukhsa-collaboration / covid-19-app-android-ag-public

COVID19 Android app
Other
142 stars 31 forks source link

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

Open sersorrel opened 4 years ago

sersorrel commented 4 years ago

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

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