- Home /
Continuously updating an app (iPhone
I would like to know something I have been throwing my head into for months.
How do we make an app that updates continuously. For example a news app that needs to report something daily. Like certain contents change all the time . And this is to be done on iPhone
Any Help would be appreciated Thanks
Answer by Coderdood · Jun 26, 2012 at 06:17 PM
Store the content that needs to be updated on a web server and access it through Unity3D using the WWW class.
For example say you have a game and want to update game balance values without pushing out a new app update. You might store the values in a local copy of a file like so:
Filename = LocalBalance.txt
Version 1
SomeUnitSpeed = 1
SomeUnitAttack = 1
Then you could use the WWW class to grab the file off your server.
IEnumerator GrabFile()
{
WWW pGetFile = new WWW(url);
yield return pGetFile;
// Get the contents of the page as a string
string pszResult = pGetFile.text;
}
That’s the basic idea anyway.
Thanks a lot. I got this. Just one more thing. Does it have to be on a website or it can be on my laptop itself?
In order for it to work on the iOS it has to be on a web server accessible to the device - with the proper configuration you could do that to a laptop but that can get pretty in-depth. Here's a link to start. ( http://lifehacker.com/124212/geek-to-live--how-to-set-up-a-personal-home-web-server )
If your testing on a desktop, however, you can install XA$$anonymous$$PP ( http://www.apachefriends.org/en/xampp.html ) and access the file locally.
Thank you very much. I will make a free account on a web hosting site and get going.
Totally solved my issue
Your answer
![](https://koobas.hobune.stream/wayback/20220613073328im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
C# UNITY_IPHONE, Still executing in update()? 1 Answer
Question on Unity 3D update to 3.0 ... 1 Answer
iPhone: Update Assets from Web? 1 Answer
Unity Remote 5 0 Answers