Apple Family alternatives and similar libraries
Based on the "Bluetooth" category.
Alternatively, view Apple Family alternatives based on common mentions on social networks and blogs.
-
BabyBluetooth
:baby: The easiest way to use Bluetooth (BLE )in ios/os ,even bady can use . 一个非常容易使用的蓝牙库,适用于ios和os -
BluetoothKit
Easily communicate between iOS/OSX devices using BLE -
Bluejay
A simple Swift framework for building reliable Bluetooth LE apps. -
PeerKit
An open-source Swift framework for building event-driven, zero-config Multipeer Connectivity apps -
Discovery
A very simple library to discover and retrieve data from nearby devices (even if the peer app works at background). -
Bleu
BLE (Bluetooth LE) for U🎁 Bleu is the best in the Bluetooth library. -
LGBluetooth
Simple, block-based, lightweight library over CoreBluetooth. Will clean up your Core Bluetooth related code. -
simple-share
Easy Proximity-based Bluetooth LE Sharing for iOS -
CocoaMultipeer
This repository is a peer to peer framework for OS X, iOS and watchOS 2 that presents a similar interface to the MultipeerConnectivity framework (which is iOS only) that lets you connect any 2 devices from any platform. This framework works with peer to peer networks like bluetooth and ad hoc wifi networks when available it also falls back onto using a wifi router when necessary. It is built on top of CFNetwork and NSNetService -
ExtendaBLE
Blocks Based Bluetooth LE Connectivity framework for iOS/watchOS/tvOS/OSX. Quickly configure centrals & peripherals, perform read/write operations, and respond characteristic updates. -
AZPeerToPeerConnection
AZPeerToPeerConnectivity is a wrapper on top of Apple iOS Multipeer Connectivity framework. It provides an easier way to create and manage sessions. Easy to integrate -
PeerConnectivity
Functional wrapper for Apple's MultipeerConnectivity framework.
Appwrite - The Open Source Firebase alternative introduces iOS support
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of Apple Family or a related project?
README
[Banner](Images/Banner.gif)
Apple Family 
A simple framework that brings Apple devices together - like a family. It will automatically use bluetooth, wifi, or USB to connect and communicate with other Apple devices and share information. Currently supports iOS and macOS.
This library is a combination of 2 others I wrote: Apple Signal for wifi and bluetooth communication, and Peertalk Simple for USB communication. Check them out if you only want one of these features.
Demo
[Banner](Images/FamilyDemo.gif)
Installation
Grab the files from the source folder and drag them to your project! You also need to have peertalk by Rasmus installed.
Example
Family is simple to setup. Just start the connection, and you can start sending and receiving data! Check out the Xcode demo project for a full implementation .
Setup
Start the connection. Specify a port number, which can be any 4 digit number, and a service type, which is a string limited to 15 characters and 1 hyphen. In order to be discovered, a device must use the same port number and service type. There are also multiple connection types for wifi/bluetooth connectivity. Check the Signal docs for a description of each Signal type.
Family.instance.delegate.addDelegate(delegate: self)
Family.instance.initialize(portNumber: 2345, serviceType: "family-example", signalType: .Automatic)
Next, we also need to run a method in the App Delegate when the app restarts because the usb connection automatically disconnects when the iPhone is put to sleep.
func applicationDidBecomeActive(_ application: UIApplication) {
Family.instance.reconnect()
}
Send Data
In Family, you can add a tag to the data you send so that the receiver knows what the data is. You can create a UInt32
enum to manage them. Here's an example:
enum DataType: UInt32 {
case string = 100
case image = 101
}
Send some text, and specify its type using our enum. Family automatically converts objects to data using NSKeyedArchiver
, so if you want to send your own data, use the sendData
method instead.
Family.instance.sendObject(object: "Hello World!", type: DataType.string.rawValue)
Receive Data (Protocol)
The protocol conformation. We get the data, check its type, convert it back to the according object, and update our UI. The class has an extension to the Data class - the method convert()
- that uses the NSKeyedArchiver class to convert data back into the object you need. You can also update the list of connected devices with the second method.
func family(didReceiveData data: Data, ofType type: UInt32) {
if type == DataType.string.rawValue {
let string = data.convert() as! String
} else if type == DataType.image.rawValue {
let image = UIImage(data: data)
}
}
func family(connectedDevicesChanged devices: [String]) {}
And we just setup communication session between devices. It's that simple!
Contribute
Feel free to to contribute to the project with a pull request or open up an issue for any new features or bug fixes.
*Note that all licence references and agreements mentioned in the Apple Family README section above
are relevant to that project's source code only.