Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 12-27-2009, 06:10 AM   #1 (permalink)
Registered Member
 
Join Date: May 2009
Posts: 3
Default 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!
jbishop is offline   Reply With Quote
Old 12-27-2009, 02:32 PM   #2 (permalink)
Super Moderator
 
Join Date: Oct 2009
Location: San Diego, CA
Posts: 1,578
Default

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.
JasonR is online now   Reply With Quote
Old 03-19-2010, 07:44 AM   #3 (permalink)
gems
 
Join Date: Jan 2010
Location: kolhapur
Posts: 23
Default

Quote:
Originally Posted by jbishop View Post
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
gems is offline   Reply With Quote
Reply

Bookmarks

Tags
connection, device, server, simulator

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 274
20 members and 254 guests
ADY, Bertrand21, Dani77, HemiMG, iDifferent, IphoneSdk, jakerocheleau, JasonR, jimbo, macquitzon216, MACralik, mer10, NSeven, prchn4christ, Rudy, silverwiz, spiderguy84, Sunny46
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,885
Threads: 89,230
Posts: 380,767
Top Poster: BrianSlick (7,129)
Welcome to our newest member, bookesp
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 03:01 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0