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;
current version: 0.2.0
PPComLib is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "PPComLib"
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];
kun.zhao@ppmessage.com, jin.he@ppmessage.com, guijin.ding@ppmessage.com
PPComLib is available under the MIT license. See the LICENSE file for more info.