bluetooth Multi Player Iphone App - bluetooth

How many iphones can you connect via bluetooth using bonjour I want to create a four player iphone app

It is possible to have one Master and up to seven Slaves.
So 8 total phones.
One must be a master (server) the others must be clients.
I am currently working on an app that can connect all 7 slaves to one master.
This is what I have come up with. Also if you are wanting to create a game with multi-player needs then you may want to look into the Game Kit Api that apple provides.
Also it will only work on iphone 3.0 and up. So that is 3G, 3GS and iPhone 4 devices.
Game kit does use bonjour under the hood but handles most of that for you.
Good Hunting!

Related

WatchOS 9 CallKit + VoIP

I saw that on last WWDC Apple announced launch of CallKit on WatchOS.
After that part of CallKit framework becomes available for WatchOS 9+ but there is no any specific documentation or examples for making CallKit works on WatchOS.
My question is: is it possible to recieve VoIP pushes and accept VoIP calls on watch as for now?
yes it is; one such app that already does this is Wristcam (they make apps and also hardware, but you don't need their hardware to use their free calling app)
all of this is possible without a phone at all: the phone could be left at home or powered off entirely. your watch will ring or vibrate from a Wristcam call
it's even possible to do one-way video call (with two-way live audio) between your friend's iphone and your apple watch

iOS BLE - How to keep app active in the background?

I am trying to find a clever way to keep a BLE app active in the background on iOS 6, without breaking any of Apple's rules. I plan to use the phone as a peripheral device and another BLE circuit as the central. My app will automatically be opened when a user arrives to a building using geofencing. After that the iPhone will connect to the first BLE central device it sees (the device will be in its white list). The user will then be able to move throughout the building switching to different BLE "nodes".
My question is: What do I need to do in the background when a user is stationary at their desk so that the app does not get suspended due to memory resources?
My idea is based on this solution for a separate problem: There could potentially (not regularly) be 10-50 users in an area with only a few BLE "nodes" and I read at bluetooth.org that I could setup a dynamic connection system, basically rotating connections through all the users.
My idea is to setup a similar dynamic system where the central device (not the iPhone) disconnects the device on regular intervals (30-40 minutes) and then the iPhone will reconnect.
Is this something that some feasible? Is this against the iOS development guidelines? I was unable to find anything explicit about this. I have also asked on the iOS developer forum, but unfortunately it is not as popular as this site.
Thanks in advance!
Xcode -> Project target -> Capabilities -> Enable background mode
Check Uses Bluetooth LE Accessories
Capabilities
Also enable the following key in .plist file
Required background modes
App communicates using CoreBluetooth
Plist

connecting multiple iphone devices using bluetooth /peer 2 peer

I started to work on a game application for iphone where minimum four player participate in this game , they will be connected via their BT.
my problem is that i got some sample code for connecting 2 device only (VIA bluetooth) but i m looking for connecting at least four devices,
any idea plz share if any tutorial or sample code, will be better for me.
Thanks,

Phases for mobile game development

I'm currently thinking of developing chess code with multi-player facility connected and played via bluetooth. For that I need to chalk out the phases, i mean systematic modules, that I should follow to develop the game. If anyone can state it or have any link that can help it out, it would be great.
Another thing I am developing this in J2ME, so can anyone give me an idea about the way to connect the game in two mobile devices through bluetooth in J2ME. I mean to say the class or file that is used to connect the gaming devices.
For the second part of your question: you need to make an SPP (serial) connection between the two devices, with one acting as a client and the other as a server; see this tutorial for more information.
Then you need to create your own protocol to allow the two devices to communicate everything they need to.
This will only work on handsets with JSR 82.

How many clients can be supported by Gamekit server in IPhone 3.0

The GameKit in iPhone SDK 3.0 create a peer-to-peer bluetooth connection between two iPhones, using Server-client model. In the bluetooth spec, up to 7 clients can be connected to a server. But in GameKit document, there is no words for this issue. Does it means a GameKit server can connect more than 7 clients? If yes, does that mean some clients is in sleep mode?
Thanks!
I've been looking for a definitive answer for this for months. There isn't one as far as I can tell. I keep going back to Volcore's blogs on the "woe's of gamekit" where they detail getting up to 4 devices connected over Bluetooth with very unreliable results. All Apple's demos point to "two devices connected" to be the ideal GameKit situation. I eschewed BlueTooth in favor of Wifi in the game I am developing since I knew that I could definitely get more connected (I needed up to 6 players—wasn't convinced I could make it work with BlueTooth). I've found it to be no problem to get 3 devices and simulator talking to each other (though It's not a real-time game—it's turn based—so the data sends are small and infrequent). My guess is that GameKit over bluetooth would not support more than 7 clients.
I've been working on a little app to broadcast messages to multiple iPods. It seems rather unreliable to use bluetooth for any more than two clients (assuming you're setting up a client-server architecture). I'd recommend using cocoaasyncsocket for communicating with multiple clients. I think you'd need a router though.

Resources