gpslogger icon indicating copy to clipboard operation
gpslogger copied to clipboard

Logging randomly quits after upgrade

Open shaun-adam opened this issue 5 years ago • 6 comments

App was working great until I recently upgrading to version 102.

I have auto updates on, so it's possible it's not 102 itself that caused the problem, but I did notice there were changes to the notification in the release notes.

I'm logging to a URL. Everything works, but I'll notice in a couple of hours that logging has stopped. Upon checking my phone the notification is gone. Restarting the app gets everything working again.

shaun-adam avatar Jul 02 '19 13:07 shaun-adam

I made sure that gpslogger is set to 'not optimized' in my battery saving settings but the issue persists.

shaun-adam avatar Jul 02 '19 13:07 shaun-adam

Just realized I'm getting an error if I switch back to the app after the notification is gone.

Error says: No GPS provider available. Please check your location settings And enable a location provider.

I don't believe I've changed any location services options.

shaun-adam avatar Jul 02 '19 13:07 shaun-adam

Just came back to add that I'm using a Xiaomi A2, and it was previously stable before the last update.

shaun-adam avatar Jul 08 '19 05:07 shaun-adam

Can you try to record a debug log - this will show any errors if they are being thrown and causing early exit.

In terms of optimizations, have a look at this as well: https://dontkillmyapp.com/xiaomi

mendhak avatar Jul 13 '19 22:07 mendhak

I've attached the debug log. It looks like it mentions Android killing the service at the very end. I visited the link you mentioned, but my device is running Android One, not the xiaomi variant. I'll have a look at Android One tips and report back if I find a fix.

debuglog.txt

shaun-adam avatar Jul 17 '19 13:07 shaun-adam

The only relevant section I found was on https://dontkillmyapp.com/general . I made sure to check the settings under the Android 8+ section and confirmed that GPSLogger is not background restricted.

shaun-adam avatar Jul 17 '19 13:07 shaun-adam