Skip to content

PPMESSAGE/ppcom-ios-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

94 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PPComLib

CI Status Version License Platform

Try Example

To run the example project, clone the repo, and run pod install in example directory and open .xcworksapce file.

You may need refresh your existed cocoapods repos before running pod install.

cd ~/.cocoapods/repos/master; git pull;

Pod

current version: 0.2.0

Installation

PPComLib is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "PPComLib"

Init

Init with anonymous user

    PPSDKConfiguration *sdkConfiguration = [[PPSDKConfiguration alloc] init];
    [sdkConfiguration setHostUrl:@"https://ppmessage.cn" appUUID:@"XXXX-XXXXX-XXXXXXX" registrationId:@"xxxxxxxxxxxxxxxxxxxxxxxxxx"];
    [[PPSDK sharedSDK] configure:sdkConfiguration];
    [[PPSDK sharedSDK] start];
    

Init with named user

    PPSDKConfiguration *sdkConfiguration = [[PPSDKConfiguration alloc] init];
    [sdkConfiguration setHostUrl:@"https://ppmessage.cn" appUUID:@"XXXX-XXXXX-XXXXXXX" registrationId:@"xxxxxxxxxxxxxxxxxxxxxxxxxx" entUser:@{@"ent_user_id": @"the_user_id", @"ent_user_name": @"the_user_name", @"ent_user_icon": @"the_user_icon", @"ent_user_create_time": @"the_user_create_time", 123456}];
    [[PPSDK sharedSDK] configure:sdkConfiguration];
    [[PPSDK sharedSDK] start];
    

Author

kun.zhao@ppmessage.com, jin.he@ppmessage.com, guijin.ding@ppmessage.com

License

PPComLib is available under the MIT license. See the LICENSE file for more info.