/imsdk-ios

Startalk is a high-performace IM software for business. It has been stably used in Qunar for more than 4 years, providing services as well as consultation after and before sales to business. Startalk is applicable to multiple scenarios, such as office automation, business services, and first-party SDKs for IM scenes

Primary LanguageObjective-CMIT LicenseMIT

Startalk, The Best open sourced instant messenger software in the world!

Public Cloud(Startalk App)

Based on Startalk server and client-side, users can build their own domain, Sign up an account, create new domains, add users, download client app, and configure navigation for domain, After the 5 steps above, you own strong IM abilities.

Download client app Download

  • Android

Startalk on Android

  • iOS

Startalk on iOS

Configure navigation for client app Configure navigation

Private Cloud(Startalk SDK)

Private Cloud is a way for decentralized deployment. Customers or enterprises would deploy the back end code on their own servers, embedding SDK into their own app. Every enterprise is an independent node; every node works independently, and the data would only be saved in the node.

Please see the guide of embedding Android SDK and the configuration below.

Requirements

  • iOS 9.0 or later
  • Xcode 10.0 or later

Getting Started

  • Read this Readme doc

Communication

  • If you'd like to ask a general question, use Stack Overflow.
  • If you found a bug, open an issue.
  • If you have a feature request, open an issue.

Example Run

1. pod install
2. open IMSDK-iOS.xcworkspace use Xcode10+

How To Use

  • Objective-C
#import "QIMSDK.h"
...
[QIMSDKUIHelper sharedInstanceWithRootNav:rootNav rootVc:rootVc];
...
BOOL success = [[QIMKit sharedInstance] qimNav_updateNavigationConfigWithDomain:@"qim.com" WithUserName:@"san.zhang"];
if (success = YES) {
  [[QIMKit sharedInstance] loginWithUserName:userName WithPassWord:userPwd];
} else {
  
}
...
UIView *sessionView = [[QIMSDKUIHelper sharedInstance] getQIMSessionListViewWithBaseFrame:self.view.bounds];
[self.view addSubview:sessionView];

Installation

There are four ways to use QIMSDK in your project:

  • using CocoaPods
  • manual install (build frameworks or embed Xcode Project)

Installation with CocoaPods

CocoaPods is a dependency manager for Objective-C, which automates and simplifies the process of using 3rd-party libraries in your projects. See the Get Started section for more details.

Podfile

source 'https://github.com/qunarcorp/libqimkit-ios-cook.git'
source 'git@github.com:CocoaPods/Specs.git'
platform :ios, '9.0'
pod 'QIMUIKit', '~> 4.0'

Manual Installation Guide

See more on Manual install Guide

Import headers in your source files

In the source files where you need to use the library, import the umbrella header file:

#import "QIMSDK.h"

Build Project

At this point your workspace should build without error. If you are having problem, post to the Issue and the community can help you solve it.

Feedback