Chat APIs and In-app Messaging SDKs for Developers

Applozic provides Chat APIs and In-app Messaging SDKs for Android, iOS and Web apps to power cross-device, multi-platform rich messaging.
Find comprehensive guides and platform-specific Chat API documentation to get started with In-app Messaging.

Get Started    

iOS

Install Chat on iOS

The following documentation is built to help you with installing our iOS SDK into your project.

We provide 2 iOS SDKs:

  • One is our core (Applozic SDK) SDK which is written in Objective-C. In this SDK, we provide pre-built UI as well as the APIs required to build your own UI from scratch.
  • Another is a complete UI kit(ApplozicSwift SDK) written in Swift and it's built on top of Applozic SDK. This SDK cannot be used to build your own UI from scratch.

Let's see the difference between both these SDKs.

Features

Applozic SDK

ApplozicSwift SDK

Objective-C Support

YES

YES(Using a swift wrapper file)

Swift Support

YES

YES

Rich messaging support

NO

YES

User-Block feature in UI

YES

NO (APIs are available to build block feature)

Profanity filter

YES

No

Customizations

YES (See this link)

YES (See this link)

Build message UI from scratch using APIs

YES

NO

Modern UI

NO

YES

Support for our upcoming features

NO

YES

Check ApplozicSwift section to use Swift SDK and Applozic section to use Objective-C SDK.

Applozic SDK

Before we begin, please do make sure that

  • Your application is built on iOS 10.0 or above. Since Applozic SDK as of now only supports Version 10.0 or higher
  • You have Xcode 11.0 or later as your IDE to install and run Applozic SDK on iOS.

The Applozic SDK can be installed using the following method

Automated Installation using CocoaPods

In case you are already using Cocoapods, Jump to point 4 of the installation process mentioned below.

For the rest of us, please follow the instructions below

  1. Open Terminal
  2. Navigate to the root directory of your Project
  3. Run command

pod init

  1. Again go to your Project's root directory, click on the "Podfile" to open.

Copy-paste the following code anywhere in the file and Save

target 'MyTargetName' do
    use_frameworks!
    pod 'Applozic', "~> 7.11.1"
end
  1. Once done, Run pod install or pod update to refresh the CocoaPods dependencies.
  2. Your installation is now complete.

As a reference, you can download our sample project here ---> ApplozicCocoaPodDemo

This has the pod already installed, feel free to compare it with your project to confirm the same.

Add Framework Manually

📘

This step is needed only when you are not using CocoaPods

Download the latest Applozic Chat framework here and add it to your project.

Add XCFramework to your project:

i) Paste the Applozic.xcframework to the root folder of your project.

ii) Go to General.

Frameworks, libraries, and embedded content and the Applozic framework.

iii) Make sure Always Embed Swift Standard Libraries is YES in the build settings of your project.

Add Permissions

App Store requires any app which accesses camera, contacts, gallery, location, a microphone to add the description of why does your app need to access these features.

In the Info.plist file of your project. Please add the following permissions

<key>NSCameraUsageDescription</key>
<string>Allow Camera</string>
<key>NSContactsUsageDescription</key>
<string>Allow Contacts</string>
<key>NSLocationWhenInUseUsageDescription</key>
<string>Allow location sharing!!</string>
<key>NSMicrophoneUsageDescription</key>
<string>Allow MicroPhone</string>
<key>NSPhotoLibraryUsageDescription</key>
<string>Allow Photos</string>
<key>NSPhotoLibraryAddUsageDescription</key>
<string>Allow write access</string>

📘

This being a mandate from Apple, please do make sure that the following permissions are added to the info.plist file of your project.

Framework generating

These below steps will guild you to generate a xcframework manually for Applozic-iOS-SDK.

You can check out this link


What's Next

Authentication

Applozic Swift UIKit

Before we begin, please do make sure that

  • Your application is built on iOS 10.0 or above. Since ApplozicSwift SDK as of now only supports Version 10.0 or higher
  • You have Xcode 10.2+ or later as your IDE to install and run ApplozicSwift SDK on iOS.
  • For Swift versions :: < 4.0 - Use SDK version below 1.1.0 and For Swift version >= 4.0 - Use framework version starting from 1.1.0

Installation using CocoaPods

  1. Open Terminal
  2. Navigate to the root directory of your Project
  3. Run command

pod init

  1. Again go to your Project's root directory, click on the "Podfile" to open.

Copy paste the following code anywhere in the file and Save

target 'MyTargetName' do
    use_frameworks!
    pod 'ApplozicSwift'
end
  1. Once done, Run pod install or pod update to refresh the CocoaPods dependencies.
  2. Add these permissions in the Info.plist file.
  3. Your installation is now complete.

Updated 13 days ago


What's Next

Authentication

iOS


Install Chat on iOS

Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.