SamAmco / track-and-graph

An android app for tracking personal data and creating custom graphs
GNU General Public License v3.0
428 stars 39 forks source link

auto backup and restore #279

Closed ballinger closed 4 weeks ago

ballinger commented 1 month ago

hi, great app, thanks for that! i upgraded my phone and OS from 10 to latest. reinstalled the app and restored data from the db backup. all is working as expected - but it does not trigger the auto backup anymore. the file is saved and was restored from a nextcloud client path. if i correct the increment it does the backup but again fails to set the correct future time to trigger a backup. turned off the android remove rights when in background for nextcloud and track&graph is there anything else that i am missing?

ballinger commented 1 month ago

Not sure if this is related to restoring from db or csv. Is auto update working on android 14?

ballinger commented 1 month ago

ok. tried a couple of things without success...

when setting up freq and time it successfully commits to the db but the backup trigger for the next time increment does not work and the timer is stuck. android 14, disabled all battery / background optimizations for track&graph and nextcloud any help would be very appreciated, all was working so flawlessly on android 10.

SamAmco commented 4 weeks ago

Hi, thanks for flagging this. Sounds like it could be a bug in android 14. I will have to have a look into it.

ballinger commented 4 weeks ago

Thank you! This app became part of my daily routine, feeding the auto backup on change to nocodb and then superset for charts :)

SamAmco commented 4 weeks ago

I dug a little deeper. It seems like it's a dependency injection issue after updating certain libraries. I think it's affecting more than just android 14, it's actually broken on my device too. I haven't got a solution yet but i'll keep digging. Thanks again for pointing this out.

ballinger commented 4 weeks ago

Ok, cool. At least it's reproducible. Thanx for looking into that!

SamAmco commented 4 weeks ago

Ok I have a fix I will push straight to release, it should be there in v4.0.2. Please re-open the issue if you still have troubles.

ballinger commented 3 weeks ago

Sweet, thanx! Did the publish go through? Not showing up on gplay or fdroid

SamAmco commented 3 weeks ago

Looks like it took a while for google play for some reason. Just went up today. F-Droid is normally behind, looks like it's up there now though.