Skip to content

Latest commit

 

History

History
25 lines (16 loc) · 1.5 KB

File metadata and controls

25 lines (16 loc) · 1.5 KB

ChatApp with Layer Example

This repository contains an example project that includes the basics on how to implement a Chat application on iOS with messaging services provided by Layer, user interface components from Atlas and phone-based authentication service and two-step verification UI provided by RingCaptcha.

Requirements

This application requires Xcode and the iOS SDK v8.0. Dependencies are managed via CocoaPods to simplify installation.

Setup

  1. Clone the project from Github: $ git clone https://github.com/ringcaptcha/ChatApp-Layer-Example.git
  2. Install the dependencies in the root directory via CocoaPods: $ pod install
  3. Open ChatApp.xcworkspace in Xcode.
  4. Add a plist file named Secrets.plist under Resources with your RingCaptchaAppKey , RingCaptchaSecretKey , LayerAppId, and AuthenticationURL. -- AuthenticationURL must be a HTTP URL to GET with user and nonce parameters of the form: http://siteexample.com/layer/jwt?user=%@&nonce=%@
  5. Build and run the application on your Simulator and begin messaging!

Highlights

  • Uses RingCaptcha to perform two-step phone based authenticate to users.
  • Uses Atlas, Layer's UI components
  • Uses LayerKit for messaging

License

This project is available under the Apache 2 License. See the LICENSE file for more info.