Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Data wipe on update

My app stores settings data which is synced via companion to the settings.txt file on the watch. When I submit an update to the app, I have people tell me that it wipes their data and have to reset it. 

 

Looking for some clarity as to what happens during the update. Is the app wiped from the watch and reloaded or are only the files included in the .fba file uploaded? 

 

If it is the latter, then I will not include the settings.txt file in updates so that it will keep the current file. 

Best Answer
0 Votes
5 REPLIES 5

The app does get reinstalled, so if your fba file includes a settings.txt, then that file will be overwritten.

Best Answer
0 Votes

Will it stay resident if I leave it out of the fba or will it wipe it and then update without the file?

Best Answer
0 Votes

Did some further testing and found that the data will stay if the update does not include the settings.txt file. 

 

The unintended consequence to this however, is new installs will not get the file and have no place to write the data to....

 

Best Answer
0 Votes

Is there currently any supported method that could either backup/restore this file/data when updated?

Best Answer
0 Votes

You could include your settings.txt in your package but with a different name - e.g. baseline.txt. When you app is run, check if settings.txt exists. If not, just rename baseline.txt to settings.txt - problem solved.

 

Best Answer
0 Votes