Replies: 5 comments 7 replies
-
Data of only the current running workout is stored into the browser IndexedDB (that's a form of browser cache). It gets discarded only when the user clicks the stop button and reloads the page. For as long as you don't end up (stop) the workout it should survive page reloads, closing the tab or the whole browser. I have it once keep data for me over 3 days. The side effect of this is that if you continue your workout 3 days later it will look as a 4 days long workout, so you'll need to manually edit the timestamps with something like fitfiletools. When you open up the app again if you see numbers in the interval and elapsed timer slots the data is still there, you can continue from this point or stop and save, if you see dashes the data backup failed Now browser crash might be a different case. Does it appear to be caused by the app, or something else? I don't won't to introduce a remote data base, and for a year of using the app I haven’t lost any data, Did a test today: |
Beta Was this translation helpful? Give feedback.
-
I got Chrome crash twice when the workout is about to finish and I want to take a screenshot (Shift+Command+3). I remembered when I re-start the browser, the timer didn’t continue. Probably crash is not the same as closing the browser? |
Beta Was this translation helpful? Give feedback.
-
It's not cool to loose data, I am working on this, hope to deploy a fix today, but until then one way to force data backup is to switch to another open tab in the browser, and then go back to the app. I have the app listen for reload or release (tab close or switch or just browser going in the background on mobile devices) event and when that happens it backs up the data, my guess is that this doesn't get processed when the browser just crashes. So I am going to add code that makes a backup every 60 seconds, and I'll try to do some load testing. |
Beta Was this translation helpful? Give feedback.
-
Deployed a solution that is backing up data every 60 seconds. Did a crash test with an old thinkpad with Ubuntu on it:
|
Beta Was this translation helpful? Give feedback.
-
I check the folder of IndexedDB, could you identify which file is the missing data? |
Beta Was this translation helpful? Give feedback.
-
Hi @dvmarinoff
If Chrome crash before workout ending, is it still possible to find the temporary record (cache?) in any location for restoring .fit file?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions