Is there any documentation for AirDrop? I want to make an app that can be installed on multiple devices, and to be able to detect other devices that are running that app, I was thinking about AirDrop to do this part of detection. I would not want to use other solutions like bonjour.
Thank you!
I recommend the Multipeer Connectivity Framework Reference
This framework allows peer-to-peer connections (similar to AirDrop) between an app installed on multiple devices and for data to be exchanged between them over the connection.
You can find examples on how to use the AirDrop API by searching for 'airdrop' in iOS Developer Library. Here is a link https://developer.apple.com/library/ios/samplecode/sc2273/Introduction/Intro.html
Related
I would to like to develop a messaging app that uses Bluetooth.
Are there any easy frameworks for using Bluetooth in Swift?
This app needs to be able to message other iOS devices.
I've searched but couldn't find any real help for this problem.
You can use Apple's framework "MultipeerConnectivity". Not only you can send text messages but you can send any image/video/files in form of binary data using this framework. Again not only bluetooth but you can also use wifi for the purpose.
See details:
https://developer.apple.com/documentation/multipeerconnectivity
Yes, indeed!
You can use Core Bluetooth to chat to both ios and android devices from ios.
Here is a brilliant example: Who's there application
Currently i am using MultipeerConnectivity kit for making connection between iOS devices. But need is to detect or scan android devices too to connect with them.
Multipeer Connectivity will only allow you to connect with other iOS devices.
It might be worth looking at the Thali project which is a library built on top of Cordova to achieve what you're trying to do. If you look at their source code, you might be able to glean some information on how to do this yourself.
I'm trying to connect USB camera to iOS in Xcode using Swift or Objective C.
I saw online to try and use IOKit.framework, but I believe it's for MAC, which I'm not using. dos NSSstring converters but I'm unsure that will work either. I'm trying to do it through iOS.
I also have a WIFI adapter that will connect to my NIKON DSLR and shoot photos to a PC over wifi but not sure how to get the iOS device to connect and download these images.
Thanks in advance!
Looks like this isn't possible, at least for what you want.
Communicating with an external accessory requires you to work closely
with the accessory manufacturer to understand the services provided by
that accessory. Manufacturers must build explicit support into their
accessory hardware for communicating with iOS. As part of this
support, an accessory must support at least one command protocol
These USB devices obviously have not been designed with iOS in mind, so there is a very small chance you can get it to work the apple way.
Alternatively, you can look into jailbreaking and that sorta deal with the cameraconnectionkit library. This is way out of my scope though, so good luck!
I've been at this for a few days now, and can't seem to find a solution. I want to create a peer to peer network over wifi on iOS. All open source code seems to be supporting running a server or being a client, but there's no code built to support being both - a peer. Is anybody aware of a way I can do this?
iOS 7 adds the Multipeer Connectivity Framework for exactly this purpose.
Have you thought of using Apple's GameKit framework? I've used it in the past for some simple communication between devices. It's really simple and can get you out of the gate quickly. This looks like a good tutorial.
I think Open Peer is the right solution. It provides real direct peer-to-peer connection between devices without the need of a centralised server. Check out this introductory video.
You cannot create a wi-fi network programmatically in iOS using current APIs. GameKit offers some APIs to do so over bluetooth however.
If you wish to implement a custom solution using CocoaHTTPServer, be aware that you will still not be able to create a direct wi-fi connection, you will simply be able to connect devices on the same (pre-existing) wi-fi network.
Ad-hoc peer to peer Wi-Fi (such as 802.11s) in iOS is still a few years off. Maybe iOSX ;)
iOS supports the Multipeer Connectivity framework which enables iOS devices to talk to each other over Bluetooth, infrastructure (with a router) WiFi, or P2P.
It does not, however, provide a way to explicitly use P2P. There is a layer of abstraction away from how any of a device's peers (other iOS devices) are connected, and it does not currently allow for non-iOS devices to be connected.
I want to play with screen sharing between my apple devices. I know WiFi direct is part of what supports the Airdrop feature to send files between macs and want to play around with that API.
I'll keep on searching, but was wondering if anyone has done this before or if Apple won't let you touch that API.
I'd also be happy to hear about any libraries that may be available specifically for raspberry-pi or for Linux in general.
Thanks
A friend of mine demoed an Android project he was working on the other day that utilized the AllJoyn library. AllJoyn is an open source API that supports Wifi-direct as well as other wireless protocols and is supported on Android, Linux, and iOS. It might be worth looking in to.
https://www.alljoyn.org/