Unity3d www.progress not working in iOS

I am posting values to webservice and getting response from the same webservice and i am using WWWForm in Unity3d. Now i want to wait till the response not completely load . For that i have use yield www; but it’s not working properly. After that i found www.progress and it’s working in my Unity3d player but it not working in iPhone or iPad. So can anybody please help me to come out from this problem?

EDIT1: I am using javascript.

Thanks in advance !!!

2 Answers

2

Out of my experience WWW.progress works perfectly fine assuming the webservice gives a proper answer that includes the filesize in the http header as expected and assuming naturally that you implement your code correctly using

while (!isDone) {
  progress = www.Progress;
  yield return null;
}

i am using Javascript so above code will not work for me.

Finally i got the solution for that:

I have used yield StartCoroutine("getSettingsValues"); and it solves my problem.