Can an iPhone or iPod Touch communicate with another device in the same room?
Asked Answered
A

2

6

I'm new to developing applications for the iPhone and iPod touch. Is it possible to communicate directly between 2 devices in the same room by using WiFi or perhaps even BlueTooth on the iPhone?

I've seen a demo of a fire application where one iPhone "lights" other iPhone when they get close to each other. How is this accomplished?

The point of all this is that I am exploring the option of developing a game that you can play with another person in the same room.

Alcantar answered 26/10, 2008 at 14:16 Comment(1)
I get the impression in the second paragraph, you are talking about proximity - i.e. closeness of the two devices in the same room. If this is the case then you need to think about using shortrange technology like bluetooth, or ultrasound/audio to either kickstart the communication. Please clarify?Tonina
C
12

The iPhone supports Bonjour based service discovery and several applications take advantage of this to do things like syncing with a PC on the same network. Explore the samples and guides in the iPhone SDK. WiTap and BonjourWeb are good examples to start with. NSNetServices and CFNetServices are the APIs you'll be dealing with for Bonjour

Commensurate answered 26/10, 2008 at 14:23 Comment(0)
H
6

iPhone - iPhone communication can also be accomplished over bluetooth using GameKit.

Horodko answered 2/2, 2010 at 13:7 Comment(1)
Didn't realize this question was over a year old. No wonder I was the first to suggest GameKit.Horodko

© 2022 - 2024 — McMap. All rights reserved.