Ring Letter Instant Messaging--ios client Integration

Source: Internet
Author: User

1. Introduction of the Ring letter website

2, Preparation: Login to the Ring Letter developer account and create the application, production and upload the push certificate (development, production);

3, download the SDK: Download through cocoapods or download to the official website, for cocoapods download:

Does not include the live Speech version SDK (Easemobclientsdklite), when referenced #import <EaseMobSDK/EaseMob.h>

Pod ' easemobsdk ',: git = ' https://github.com/easemob/sdk-ios-cocoapods.git '

Includes live Voice version SDK (EASEMOBCLIENTSDK), #import when referenced <EaseMobSDKFull/EaseMob.h>

Pod ' easemobsdkfull ',: git = ' https://github.com/easemob/sdk-ios-cocoapods-integration.git '

4. There are three subfolders in the IOS SDK: include, LIB, resources

    • Lib Static library, containing two static libraries libeasemobclientsdk.a and LIBEASEMOBCLIENTSDKLITE.A. The LIBEASEMOBCLIENTSDKLITE.A does not contain real-time speech features, LIBEASEMOBCLIENTSDK.A contains all features. If you do not need real-time speech function in your app, delete libeasemobclientsdk.a only use Libeasemobclientsdklite.a.
    • The Resources SDK bundle, which contains the database of the Legacy SDK, the message tone, and the SDK configuration file. Where the SDK configuration file is encrypted, the Legacy SDK database has little real effect.
    • Include

1> Easemobclientsdk/easemobclientsdklite contains the total header file to be referenced in the project, i.e. only #import "EMSDKFull.h" or #import "EaseMob.h" in the Code All the corresponding APIs can be called.
2> Callservice contains real-time voice-related interfaces
3> Chatservice contains chat-related interfaces such as registration, login, logout, single chat, group chat, groups, etc.
4> Utility contains DeviceManager and ErrorManager. DeviceManager hardware-related interface, errormanager error code Definition

Note: The Delegates folder contains various proxy interfaces, internal folders contain declarations for various protocols, and types folders contain declarations of various instances.

5. Configuration Engineering

1> Add SDK to add dependent libraries to build phases→link Binary with Libraries

The SDK relies on libraries to have

    • Mobilecoreservices.framework
    • Cfnetwork.framework
    • Libeasemobclientsdklite.a
    • Libsqlite3.dylib
    • Libstdc++.6.0.9.dylib
    • Libz.dylib
    • Libiconv.dylib
    • Libresolv.dylib
    • Libxml2.dylib

2> add-OBJC to build Settings→linking→other Linker Flags (note case)

3> If there is a conflict with-OBJC in your project, you can add-force_load to resolve it. Format:-force_load[space]easemobsdk/lib/libeasemobclientsdklite.a (path to Static library)

6, if the compilation is successful, the SDK has been successfully integrated.

Ring Letter Instant Messaging--ios client Integration

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.