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
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
Will it stay resident if I leave it out of the fba or will it wipe it and then update without the file?
Best AnswerDid 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 AnswerIs there currently any supported method that could either backup/restore this file/data when updated?
Best AnswerYou 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