Example code for integrating LayerKit.
Quick Start is a sample application highlighting how to integrate LayerKit, the iOS SDK for the Layer communications platform. It presents a very simple example of a chat app using Layer.
The Quick Start application requires Xcode and the iOS SDK v8.0. Dependencies are managed via CocoaPods to simplify installation.
- Clone the project from Github:
$ git clone https://github.com/layerhq/quick-start-ios.git
$ cd quick-start-ios
- Install the dependencies via CocoaPods:
$ pod install
- Open
QuickStart.xcworkspace
in Xcode. - Replace
LAYER_APP_ID
in LQSAppDelegate.m (line 16) with your App ID from the developer dashboard (http://developer.layer.com) under the "Keys" section. If you skip this step you will get an error on app launch. - Build and run the Quick Start application on a Simulator and a physical Device to start a 1:1 conversation between them.
NOTE: If you shake the Device the navbar color will change on both the Simulator and Device.
- Demonstrates how to implement authentication, querying, typing indicators and metadata with Layer
- Provides a reference implementation for driving Message UIs via
LYRQueryController
In order to populate the sample app with content, you must configure the following variable inside Constants.h:
LAYER_APP_ID
: The Layer application identifier for you application.
The authentication process requires that you provide a sandbox app identifier that has been configured to use the Layer Identity Provider.
QuickStart was lovingly crafted in San Francisco by Abir Majumdar during his work on Layer. At Layer, we are building the Communications Layer for the Internet. We value, support, and create works of Open Source engineering excellence.
Abir Majumdar
QuickStart is available under the Apache 2 License. See the LICENSE file for more info.