rainerblind / aTrainingTracker

An android app for tracking your sports activities (supporting ANT+ and BTLE)
GNU General Public License v3.0
45 stars 19 forks source link

Fails on Android 10, worked fine before upgrade to Android 10. #22

Closed mike-fabian closed 4 years ago

mike-fabian commented 4 years ago

aTrainingTracker worked perfectly for me on my OnePlus6 until a few days ago on Android 9.

Then, a few days ago I got an update to Android 10 (official update from the maker of the phone). Since then, aTrainingTracker doesn’t work anymore ☹.

aTrainingTracker-fails-android10 aTrainingTracker-fails-android10-android-version-information

It still starts tracking but tracks only a few dots and then it seems to stop. And then it fails saving the files to SD-card und uploading them to Strava.

rainerblind commented 4 years ago

Hi @mike-fabian, I just published a new release (V4.2.3) that might solve the problem. Could you please give this version a try?

mike-fabian commented 4 years ago

I have 4.2.3 installed now but unfortunately it behaves the same as before. It started tracking for a few minutes but then stopped. And the export to SD card and to Strava failed as before.

atrainingtracker

mike-fabian commented 4 years ago

The changelog in the play store says:

V4.2.3: Bugfix: Crash of ANT+ Service on Android 10.

I didn’t try to connect to a ANT+ device, I was just using GPS. Not sure whether this matters.

rainerblind commented 4 years ago

Sounds strange. Do I get it right: The app does not crash but does not track (except for some seconds); while training, the displayed values are valid.

mike-fabian commented 4 years ago

No, it doesn’t seem to crash.

I tried again today: It seems to track until I switch to some other app (I don’t kill atrainingtracker, I just switch to some other app). As soon as I switch to atrainingtracker, it continues tracking. But I cannot put it into the background, then it stops tracking.

mike-fabian commented 4 years ago

You see here that the track has some straight sections, that’s when it stopped tracking because I did switch to some other app. And in the end, the exporting to SD-card and uploading failed, even though I did not switch to another app when stopping the tracking and clicking on "save":

atrainingtracker

mike-fabian commented 4 years ago

One can see the long straight sections when it stopped tracking because the app was in the background better here:

atrainingtracker

rainerblind commented 4 years ago

Looks like the app does not track properly, when it is in the background. Could you please if the app will get the location all the time: grafik

mike-fabian commented 4 years ago

This was set to "Allow only while using the app". I don’t know why, I am pretty sure I didn’t set it.

I’ll go for a walk again tomorrow and see whether it makes a difference.

mike-fabian commented 4 years ago

Changing the permissions to “Allow all the time” did help, now it tracks continuously!

But it still fails saving and uploading to Strava:

atrainingtracker

rainerblind commented 4 years ago

Puh, at least halve of the problem is solved now.

mike-fabian commented 4 years ago

Thank you! Then you can probably close this issue here if the rest is tracked in issue #27

rainerblind commented 4 years ago

V4.2.5 solves the two problems of this issue. @mike-fabian could you please confirm.

mike-fabian commented 4 years ago

Yes, both problems are fixed for me in V4.2.5.