Native iOS SDK

REVE Chat’s iOS SDK can be seamlessly integrated with your mobile apps and enable your team deliver in-app messaging to your app users for better engagement and customer support.

This documentation shows you how to embed REVE Chat iOS SDK ( latest version 3.0.2.4) in an iOS application and get started in a few minutes.

Minimum Requirements

  1. Xcode 7 or above

  2. iOS 8 or above

Installation:

CocoaPods (recommended)

# For latest release in cocoapods
uncomment the line  use_frameworks!
pod 'ReveChatSDK'

iOS SDK integration process

To integrate iOS SDK with your iOS mobile app, please follow the below mentioned steps:

Update your plist

The iOS SDK uses the camera and photo library in iOS.

If your app does not already request permissions for these features, you should update your info.plist file with a usage description for NSPhotoLibraryUsageDescription and NSCameraUsageDescription.

Import REVE Chat headers

Setup Account ID

Initiate REVE Chat

Pass login parameter while initiate ReveChatSDK

If you don't want to show the pre-chat form when the visitor is logged in, then pass the info bellow:

If you want to show the pre-chat form when the visitor is logged in, then pass the info bellow:

Enable Notification

You can enable the notification when the app is in background mode. Use the below code:

Additional changes (optional)

FAQs (General Queries while Integrating)

  1. I am facing the following error in console ld: library not found for -lAFNetworking Reason : in your pod file use_frameworks! line is commented. Solution : Uncomment use_frameworks! line and build again

  2. Getting Crash when initiating REVE Chat SDK Reason : the pod has been updated on the cocoa pods solution : run ‘pod update‘ in the terminal on your project path

Git Link: https://github.com/revechatofficial/iOSREVEChatSDKTest

Last updated

Was this helpful?