barbeau / gpstest

The #1 open-source Android GNSS/GPS test program
Apache License 2.0
1.78k stars 364 forks source link

Service notification isn't dismissed on older devices #642

Open barbeau opened 1 year ago

barbeau commented 1 year ago

Describe the bug I've only gotten one report of this so far, so I'm not sure if it's a one-off device issue. But, I'm opening this to track this given the user provided a lot of good info.

Basically, (on older devices?) it seems like the ongoing service notification isn't being dismissed properly when the app is destroyed by swiping it away in the list of running apps. As a result, the notification stays active in the notification shade, and the "Stop" button isn't responsive. The only way to clear the notification is to go to system settings and "Force stop".

Here's a video showing it: https://youtu.be/_Yr3NIlmacA

I can't repro this on a Pixel 1 w/ Android 7.1 though.

To Reproduce Steps to reproduce the behavior:

  1. On Galaxy S8 Active with Android 9, open the app
  2. Make sure "Run in background" setting is off
  3. Close the app by showing the open list of apps and swiping it away

Expected behavior When app goes into the background and is killed the notification should disappear

Observed behavior The notification gets stuck at the top of the screen.

App, Device and Android version:

Galaxy S8 Active (SM-G892U) with Android 9

App version: v3.10.2 (24096-google) Model: SM-G892U Android version: 9 / 28 Location: gps, hor acc 6.432m, 0 second(s) ago GNSS HW year: 2016 Raw measurements: SUPPORTED Navigation messages: NOT_SUPPORTED NMEA: SUPPORTED Inject time: SUPPORTED Got fix: true Dual frequency: NOT_SUPPORTED Supported GNSS: GPS, GLONASS, QZSS Accumulated delta range: NOT_SUPPORTED Automatic gain control: NOT_SUPPORTED GNSS antenna info: NOT_SUPPORTED Google Play Services App: 23.13.12 (100408-519946965) Google Play Services Library: 12451000