iOS-Open-GPX-Tracker
iOS-Open-GPX-Tracker copied to clipboard
Data out of order if iPhone unloads app from memory
Feature request: Autosave option.
If GPX Tracker is paused (but not saved) and other apps are used, the iPhone may automatically unload Open GPX Tracker from memory (can tell this happened if the splash screen appears when reopening the app.) If this happens, unsaved data may be lost. Today I had a capture paused, then left the app, and when I returned later only part of the data was still present; it lost about 30 minutes of logged driving (although oddly still had some, but not all, of the data from the previous leg before the first of two times that I paused it today.)
Ideally the GPX file would be autosaved on a configurable interval, overwriting the file in progress until a manual save can be completed. At least autosaving when the 'Pause' button is pressed would be probably the easiest way to implement this but the interval might be more useful if logging is being done in the background while other things are being done on the phone.
Upon closer review, it looks like no data was actually lost. All of the points are in the actual .GPX file, however the points appear in scrambled chronological order. (For example a point at 14:28:30Z appears, followed by a point at 18:32:32Z, followed by a point at 14:28:31Z.)
As a result, the map in the app (or when the .GPX file is analyzed with some outside apps) appears to be incomplete even though the actual data is still there.
Should the app sort the timestamps in ascending order when the .GPX is saved?