New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Connected to json. #143
Comments
It looks like the cache is returning the same file to you. In my case I did this. At the end of the station JSON url put this: This would make your request think the URL is different at the end putting a number from 1 to 9999999. To this have affect, you need to fire up the app when you change your json file. |
Worked like a charm. Thank you very much. Much appreciated. |
Is there away to get Pull to refresh to to update the stations? Currently after the fix by @urayoanm I have to kill the app to get the updated list of stations. Thank you. |
I think there is a function in the StationsViewController class to do that. Is called setupPullToRefresh() |
Pull to refresh itself is setup correctly and it finds json. But UI doesn't update unless I re-run from Xcode or kill the app. |
Hey @Egytalian In sessionConfig.requestCachePolicy = .reloadIgnoringCacheData Or: sessionConfig.requestCachePolicy = .reloadIgnoringLocalAndRemoteCacheData |
@fethica Thank you so much. It works great. Much appreciated. |
I have uploaded the json file to a server, and when I update it it show on the web its updated but it doesn't reflect the update on the app. It takes a very long time to reflect the update in simulator but never does when I run the app on a physical device unless I delete the app and re-run agin.
Anyway to fix this and reflect the updates to the json file when they happen?
Thanks
PS: Pull to refresh doesn't do anything for this issue, neither killing the app.
The text was updated successfully, but these errors were encountered: