Skip to content

A simple iOS-Swift App that demonstrates basic features of iOS SDK

License

Notifications You must be signed in to change notification settings

chat21/chat21-swift-playground

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chat21 is the core of the open source live chat platform Tiledesk.com.

chat21-swift-playground

This App shows some basic features of Chat21 iOS with Swift language. Please follow the instructions to run this project.

Prerequisites

Before you begin, you first need to set up your environment:

  1. Xcode 9.0 or later
  2. An Xcode project targeting iOS 9 or above
  3. The bundle identifier of your app

Firebase setup

Create a Firebase project

Sign up on Firebase and create a project. Please refer directly to Firebase https://firebase.google.com to accomplish and better understand this task. Chat21 relies on Firebase as the backend, so it's really important for you to acquire familiarity with Firebase and all of his services.

Setup the backend for your project

After you successfully created a Firebase project you must setup the backend. Please follow this link to install Chat21 cloud functions on your just created Firebase project.

Configure authentication

Now with the setup of your Firebase project and backend functions installed you can enable email authentication to provide an easy way for your app to sign in with email and password.

Enable email signin in Firebase console:

Create a user to test chat functions:

Choose email and password:

Add the user with “ADD USER” button.

Create the Firebase iOS App

Switch on the project on Firebase, go to the Firebase Console > Project Overview and add a iOS App to your project by clicking on “Add iOS App” and follow the setup steps.

When prompted, enter your app’s bundle ID. It’s important to enter the bundle ID your app is using, this can only be set when you add an app to your Firebase project.

At the end, you’ll download a GoogleService-Info.plist file. You can download this file again at any time.

Now add this file to your Xcode project root using the Add Files utility in Xcode (from the File menu, click Add Files). Make sure the file is included in your app’s build target.

Add Chat21 SDK to the project

Chat21 uses CocoaPods so simply create a file named “Podfile” in the project’s root folder with the following content:

platform :ios, '10.0'
use_frameworks!

target 'MyChat' do
  pod 'Chat21'
end

Close Xcode and run:

pod install

From now on open the project using MyChatAdvanced.xcworkspace file.

About

A simple iOS-Swift App that demonstrates basic features of iOS SDK

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages