hello to all you guys! I wanted to make an app that was easy to update, and I immediately thought of the use of json.I watched and analyzed this example: example and this would be perfect for me, except in one case.
Always using the example of the link that I posted, I ask you this: I would not start that as soon as the application elements are not loaded from json, that's why I should be only the first time you download the application here from the AppStore and having the active connection may also be able to connect to the json file on my server. Then if the user starts the app one more time, maybe not having an active connection, how do you load the latest data from json file? Here I wanted to know if it was possible to use the json file to download updated data, only when there was an active connection (for example, I could put a button "update data"), and use default data inside the app when the 'user could not connect to the Internet. But once updated the app using the "update data" these data were saved as the default data within the application. In this way the application will always have the latest data.
Thank you and I hope I was clear.
I would start with a full copy of a default JSON file in your app.
Use a variable to reference its location through out your app. Then in the future (when a button is pressed, etc) you can change the variable to point to a downloaded version of the JSON file and apply the requisite changes.
Think you can help? Login to answer this question!