I need two iphones to communicate (send and receive messages) without being inside a LAN.
I read that Game Kit Framework makes this possibile but only via bluetooth (is that right?). The application that I have to create need a larger radius than bluetooth so I need wifi but I can't have a Laptop that create the network 'cause this application will run on the outside just between iphone (without internet connection).
Is that possibile?
In that case, where do I have to take a look? (Bonjour, Game Kit Framework..)
Thank you
Here's the deal ...
GameKit works with EITHER bluetooth or wifi. It's completely automatic. Annoyingly you CAN NOT choose between the paradigm.
From 2016, almost all iPhones / iPads can create a "hotspot" WiFi network, yes.
Related
Is it possible to let two Apps on two iPad communicate with each other, wothout them having a connection to the Internet?
My Problem is, that I want to create an app, where Multiple iPads communicate. So i have two or more iPads. Every single one of them has multiple (changeable) Variables and i want to be able to see every iPads Variables on every other iPad. If wifi or Cellular Network is available, i want to have communication over the Internet (more Range), but when these Options are not available, I want to have direct Communication.
Is this possible and how far would the communication be possible?
I found the Multipeer Connectivity Framework. How far is the Range using this?
Thank you for your Answers! 100 Meters at most with the Multipeer Connectivity Framework.
I'm guessing bluetooth.
What are the transfer speeds?
It would have to work on iPhones which are not jailbroken, although I'm still curious about how it could work better on jailbroken ones.
The GameKit GKSession class supports connecting to nearby instances of the same app using both Wi-Fi and Bluetooth. The choice of transport is completely automatic and hidden by the API. So you could use that to transfer data between nearby devices. I don't know what the transfer speed is like though. Probably not very good.
I guess, via "Bump Technology".
I need to communicate my app with 2 devices. A restriction is that I can't use a server but all iOS devices will be in one Wi-Fi network. What options do I have? How I can send a message to another copy of my app running on another device?
I dont know whether its a correct approach or not but as you cannot use server,so the approach i can think of is we can create a socket connection using TCP/IP or UDP(based on reliability) for data exchange.
I dont think you can communicate between 2 devices running the same application without having some kind of server application in-between.
Even if you could find the other device over the WIFI I dont think you can tell if the other device is running the app or not.
I think you may be referring to MultipeerConnectivity
The Multipeer Connectivity framework provides support for discovering
services provided by nearby iOS devices using infrastructure Wi-Fi
networks, peer-to-peer Wi-Fi, and Bluetooth personal area networks and
subsequently communicating with those services by sending
message-based data, streaming data, and resources (such as files).
Source: https://developer.apple.com/library/ios/documentation/MultipeerConnectivity/Reference/MultipeerConnectivityFramework/
Apple Sample:
https://developer.apple.com/library/ios/samplecode/MultipeerGroupChat/Introduction/Intro.html
I'm developing an iPhone/iPad app that requires it communicate with another device. I'm actually more interested in receiving input from another device that the iPhone is connected to through USB. The solution needs to work with any iOS device and cannot require it to be jailbroken.
I've heard of apps that communicate with a piece of hardware that can be plugged to the iOS' serial connection, which is similar to what I'm going to develop except that the other device I'll be connecting to is a standalone music keyboard.
best regards,
fbr
If you are developing accessories that need to connect to iOS devices and want to use your own communication mechanism then you need to join the Apple MFi program.
Several options:
Forget MFi unless you have 1000s of $ backing up your product development. Apple won't even talk to you. I've tried.
Take a look at the Serial Cable from Redpark (http://redpark.com/c2db9.html)
I've got one of those and it's ideal for apps that you can deliver on your own, but you might also be able to get them into the App Store.
Another option is to use Wifi with a Wifi-to-Serial adapter on the other end. I've used the RN-174 and RN-134 from Roving Networks successfully.
However, these solutions only get you Serial connections, but can be quite fast, especially with the RN modules. There are also Serial-to-USB converters you can use on the device's end, but that would require the device to work as a USB host, usually. If you have a USB device that wants to act as a client, these common adapters won't do the trick.
So, unless you can actually afford the MFi program, and if you really need USB connectivity, you'll have to let someone create a small box containing a USB host adapter with a Wifi chip. I don't know of a ready-made solution for this yet, although I've seen quite a few area where people would like to have such a unit.
I'm curious if it's possible to have more than two iPads/iPhones connected to one another over a bluetooth network simultaneously. I'd like to design a network game that supports more than two players but I can't find any information to determine if this is even possible.
Bluetooth only supports Device-to-Device not AdHoc. As "pst" suggests, WiFi is the only way to go.
if... you want to try.... first they would have to be jailbroken.
on cydia, try out the wywi app >> bluetooth tether with the pc
it has other functions like usb tethering, its the best tethering app if you dont care about revealing your connection to your carrier, but that doesnt suit the case
i know for a fact that you can tether as ad hoc via usb tethering, i believe the bt tethering should work the same