Advertise here




Advertise here

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Google Sign In with OpenID
Please do not post the same thing multiple times. The board software automatically flags certain posts as needing moderator attention. This happens the most often for new users. I'm pretty sure this is made clear at the time you attempt to post. Posting the same thing over and over again just makes that many more posts the moderators have to weed through later. This makes us sad. Don't make us sad. If your post/thread doesn't appear, just wait a while. Don't post it again. If it hasn't shown up by the next day, then you can try again. I normally go through posts in the mornings, and try to check a few times throughout the day, but I'm not here 24/7. There will typically be a significant delay before posts are approved. Just be patient.

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.

Any ideas?

Thanks!
Post edited by jbishop on

Replies

  • JasonRJasonR Posts: 1,588Super Moderators
    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.
    My development blog: http://jrinn.com
  • gemsgems Posts: 23Registered Users
    jbishop;155653 said:
    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.

    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:(
Sign In or Register to comment.