REVE Chat has come up with live chat SDK for iOS mobile apps. Integrate it with your mobile app to offer live chat assistance to customers. REVE Chat SDK seamlessly integrates and enables your support team to send and receive messages in your mobile application.
This tutorial shows you how to add this iOS chat SDK and get started in a few minutes.
Necessary or minimum requirements:
# For latest release in cocoapods pod repo update pod ‘ReveChatSDK’ **update your pod with “pod update” command on terminal in case you get error while installing pod ** uninstall and install the app in case it is getting crashed on build.
To integrate live chat SDK with your iOS mobile app, please follow the below mentioned steps:
[[ReveChatManager sharedManager] setupAccountWith: <your account id>];
[[ReveChatManager sharedManager] initiateReveChatWith: <visitor name> visitorEmail:<visitor email> visitorMobile:<visitor mobile> onNavigationViewController:<your navigation controller>];
Add the following in your plist. This is for showing the description to access the gallery and camera for file transfer to the agent.
<key>NSPhotoLibraryUsageDescription</key> <string><description to use photo library></string> <key>NSCameraUsageDescription</key> <string><description to use camera></string> <key>NSAppTransportSecurity</key> <dict> <key>NSAllowsArbitraryLoads</key> <true/></dict>
/* for title while chatting*/ [ReveChatManager sharedManager].title = @"me talking”; /* for theme color chatting*/ [ReveChatManager sharedManager].themeColor = [UIColor blueColor]; /* for background color*/ [ReveChatManager sharedManager].backgroundColor = [UIColor yellowColor]; /* for navigation bar color*/ [ReveChatManager sharedManager].navBarColor = [UIColor orangeColor]; /* for tint color while chatting*/ [ReveChatManager sharedManager].headerTintColor = [UIColor whiteColor]; /* for title color while chatting*/ [ReveChatManager sharedManager].headerTextColor = [UIColor whiteColor]; /* for incoming chat bubble color*/ [ReveChatManager sharedManager].incomingBubbleColor = [UIColor blueColor];