Exchange data from one iPhone to another via 3g/Edge / Bonjour?

Discussion in 'iOS Programming' started by hfmn, Apr 22, 2009.

  1. hfmn
    Expand Collapse
    macrumors newbie

    Joined:
    Apr 22, 2009
    #1
    Hi,

    I like to build an app that can talk to another iPhone with the same App running. Think about it as a chat application. Is there a way to find the other iPhone that is running the App without a server in the middle? Maybe using Bonjour?

    Please guid me to any code sample or please tell me how this could work. Thank you!
     
  2. ghayenga
    Expand Collapse
    macrumors regular

    Joined:
    Jun 18, 2008
    #2
    Check out the WiTap code example.
     
  3. hfmn
    Expand Collapse
    thread starter macrumors newbie

    Joined:
    Apr 22, 2009
    #3
    Thank you. This works locally in the same network. Is there also a way to do this on the WAN? Worldwide through the Internet?
     
  4. jnic
    Expand Collapse
    macrumors 6502a

    Joined:
    Oct 24, 2008
    Location:
    Cambridge
    #4
    Not without a server for now. 3.0 will allow ad-hoc sharing if you can wait that long...
     
  5. hfmn
    Expand Collapse
    thread starter macrumors newbie

    Joined:
    Apr 22, 2009
    #5
    Thank you. But as I understand it, I will still need a server even with SDK3's Push?! Right?
     
  6. dejo
    Expand Collapse
    Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #6
    Correct but Push Notification != Ad-hoc Sharing.
     
  7. Ice-Cube
    Expand Collapse
    macrumors 6502a

    Ice-Cube

    Joined:
    Jul 27, 2006
    Location:
    Somewhere over the rainbow
    #7
    WiChat from iTunes has bonjour chatting without the need for a server. You can explore the same path.
     

Share This Page