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-16-2008, 07:26 AM   #1 (permalink)
New Member
 
Join Date: Nov 2008
Posts: 57
Default implementing chat between two iphones

hi all,

i'd like to implement a simple chat application between two iphones (over the internet, not local network). I have two questions about this.

1. Is it possible to do it p2p with sockets? Or

2. Do I have to send all messages through a server

In each case - how do I generally do it? (for case 2, i know how to push data from the iphone to a server with soap, but not how to push data from the server to the iphone)

thanks.
kzad is offline   Reply With Quote
Old 12-28-2009, 03:00 PM   #2 (permalink)
Registered Member
 
Join Date: Sep 2008
Posts: 87
Default

Quote:
Originally Posted by kzad View Post
hi all,

i'd like to implement a simple chat application between two iphones (over the internet, not local network). I have two questions about this.

1. Is it possible to do it p2p with sockets? Or

2. Do I have to send all messages through a server

In each case - how do I generally do it? (for case 2, i know how to push data from the iphone to a server with soap, but not how to push data from the server to the iphone)

thanks.
Did u get answer of ur second question? I am looking same.
gagandeepb is offline   Reply With Quote
Old 12-28-2009, 06:17 PM   #3 (permalink)
Registered Member
 
Join Date: Feb 2009
Location: Belgium
Posts: 106
Default

Since you explicitly say that you want it done over the internet, you will need to use a server. You could do it over bluetooth, but that of course has a limited range.

Listening for messages would be intense for your battery, so I'd suggest pushing them. I couldn't think of anything better than Push Notifications.
SkyTrix is offline   Reply With Quote
Reply

Bookmarks

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: 259
17 members and 242 guests
ADY, Alsahir, dacapo, Dani77, Desert Diva, djohnson, F_Bryant, Grinarn, HemiMG, jansan, linkmx, M@realobjects, macquitzon216, prchn4christ, smethorst, spiderguy84
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,882
Threads: 89,228
Posts: 380,762
Top Poster: BrianSlick (7,129)
Welcome to our newest member, jansan
Powered by vBadvanced CMPS v3.1.0

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