gpslogger
gpslogger copied to clipboard
Logging randomly quits after upgrade
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.
I made sure that gpslogger is set to 'not optimized' in my battery saving settings but the issue persists.
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.
Just came back to add that I'm using a Xiaomi A2, and it was previously stable before the last update.
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
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.
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.