My app works as designed when in the Editor but I have found when I export to IOS the code I use to get a string value from my server just does not work?
Here is the bare bones of the code that works fine in Editor which when I run on IOS device the debug logs displayed are:
going to start co
WaitForRequest
return www
after co
and thats it, none of the code after yield return www runs on IOS but they do in Editor??
Help please??
Thanks
public void Start() {
String url = “path to my site”;
WWW www = new WWW(url);
Debug.Log(“going to start co”);
StartCoroutine(WaitForRequest(www));
Debug.Log(“after co”);
}
private IEnumerator WaitForRequest(WWW www) {
Debug.Log(“WaitForRequest”);
while (!Caching.ready) {
Debug.Log(“!Caching”);
yield return null;
}
Debug.Log(“return www”);
yield return www;
Debug.Log(“before www.error check”);
if (www.error == null) {
// will do my stuff here
}
}