TCPObject not responding on iPad or iPad simulator
by Kent Vasko · in Technical Issues · 03/27/2012 (8:04 am) · 2 replies
Hello,
I have written an app that sends an email after certain tasks have been completed.
I use a TCPObject to setup the smtp connection and send the email message. It works great in the iTorque game builder's simulator. However, it is not working when I run the iPad simulator or when I deploy and test on an iPad.
I have echo commands setup to: indicate that the connection succeeded, output the communication between the smtp server and the app, and to know if the connection failed.
I know these echo commands are reachable, as I have tested connecting to various wireless connections that did not allow smtp communication, and I have tested disconnecting from all internet connections. So, it works.
Just wondering, can anybody think of a reason why it would work in the iTorque game builder iOS simulator, but not work in XCode's iPad simulator or on the iPad?
Any help will be greatly appreciated.
I am glad to provide code or to clarify anything that will help this along.
Thanks.
I have written an app that sends an email after certain tasks have been completed.
I use a TCPObject to setup the smtp connection and send the email message. It works great in the iTorque game builder's simulator. However, it is not working when I run the iPad simulator or when I deploy and test on an iPad.
I have echo commands setup to: indicate that the connection succeeded, output the communication between the smtp server and the app, and to know if the connection failed.
I know these echo commands are reachable, as I have tested connecting to various wireless connections that did not allow smtp communication, and I have tested disconnecting from all internet connections. So, it works.
Just wondering, can anybody think of a reason why it would work in the iTorque game builder iOS simulator, but not work in XCode's iPad simulator or on the iPad?
Any help will be greatly appreciated.
I am glad to provide code or to clarify anything that will help this along.
Thanks.
About the author
#2
I have seen a similar suggestion in another thread. Should this be added to the defaultPrefs.cs file in the common/preferences folder?
Also, seems like I would have to recompile the engine. Is that correct?
I tried adding this change to the defaultPrefs script and recompiling, but no luck.
Might I be missing some steps to incorporate this change, or just doing it improperly?
03/29/2012 (5:51 am)
Thanks for the reply, James.I have seen a similar suggestion in another thread. Should this be added to the defaultPrefs.cs file in the common/preferences folder?
Also, seems like I would have to recompile the engine. Is that correct?
I tried adding this change to the defaultPrefs script and recompiling, but no luck.
Might I be missing some steps to incorporate this change, or just doing it improperly?
Associate James Urquhart
Networking is disabled by default in iTorque. To enable it, set the following:
Hope that helps!