Database Connection Problem in iPhone but not Simulator or Touch
Hello,
I'm hoping to receive ideas as to what could be causing this problem.
The app that I'm developing reads and writes from/to a postgreSQL database. The database connection works in the simulator on my computer and on my programmer's iPod Touch, but not on my iPhone.
On my iPhone I can login to the database without any problems but the app can only occasionally read records from it. 19 out of 20 times the "server is unavailable". Occasionally when I log in I can test a lot of fields, but that's the exception not the rule. I have consistently good 3G coverage and the server is always running when I test.
Are you sure the server, or a firewall protecting it, are not filtering out the requests? I would test the iPhone on a local Wifi connection to test it. You might also try the iTouch from a remote Wifi, like maybe at a coffee shop.
Otherwise, there's no difference between how an iPhone and an iTouch connect to the internet except 3G vs. WiFi.
I'm hoping to receive ideas as to what could be causing this problem.
The app that I'm developing reads and writes from/to a postgreSQL database. The database connection works in the simulator on my computer and on my programmer's iPod Touch, but not on my iPhone.
On my iPhone I can login to the database without any problems but the app can only occasionally read records from it. 19 out of 20 times the "server is unavailable". Occasionally when I log in I can test a lot of fields, but that's the exception not the rule. I have consistently good 3G coverage and the server is always running when I test.
Any ideas?
Thanks!
Sir, i am struggling with database connectivity but couldn't get it. will you help me. any help or code will solve my problem
thanks in advance
Mahesh