Yield on iPhone

I’ve having some trouble with yield on iPhone. ( I started a topic on another forum [http://forum.unity3d.com/viewtopic.php?t=16237] , but now that I understand the issue more, I think it’s more appropriate here )

Basically, if I use yield with a WWW object to send post data to a website, nothing seems to happen. However if I don’t use yield, but instead use .NET threading to service the request on a separate thread, the post is successful. (I should point out this is just in the editor…I’m not able to test on real hardware right at the moment).

Has anybody else been able to use yield with iPhone?

Thanks!

yield works for me on the iphone. I have not read the other thread very carefully, but it could be your usage of the WWW class. Not sure.

Hi,

there is a bug in the current 1.0 version of Unity iPhone that prevents using the www class if the internet connection has not been established before. Please try first to fetch mail on the phone for example and then try your www class. Worked then for me. I made a separate www test project that I can send you tonight if you want, it demoes the problem.

The bug does not appear if you’re on a wireless lan btw, only happens on 3G / Edge connections.

Maybe it’s that probblem too you ran into. But to answer your question: Yes, have yield in JS running successfully with the www class.

Martin

Martin, would you send me the test project as well? I know this is going to affect my game too (once I get to writing the network code) and I would like to file a me-too bug report and hopefully get this fixed or a workaround.

alex@mindlube.com

Mail sent to you, Alex. :slight_smile: