How to send and receive real-time messages and multimedia files using SupportKit on iOS

I am using Slack with SupportKit v2.9.0. I want to be able to receive messages and multimedia files from other users in other channels.

(BOOL) application:(UIApplication *)application 
    didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {

    // Override point for customization after application launch.
    [SupportKit initWithSettings:
    [SKTSettings settingsWithAppToken:@"eknlh3uw8lrdveknlh3uw8lrdvs49xj29fqahcs49xj29fqahc"]];
    [SupportKit setUserFirstName:@"Han" lastName:@"Solo"];

    return YES;
} 

I call SupportKit in my application with:

[SupportKit show];

When loading a view, I can send and receive messages, but the username is not displayed. I would also like to receive messages from other users of my application in the same conversation.

Update:

I made the following change

(void) viewDidLoad {
    [super viewDidLoad];

    [SKTUser currentUser].firstName = @"Doctor";
    [SKTUser currentUser].lastName = @"Who";
    [[SKTUser currentUser] addProperties:@{ @"nickname" : @"Lil Big Daddy Slim", @"weight" : @650, @"premiumUser" : @YES }];

    [SupportKit show];

}

This is what I see in my letter:

and this is in my application:

But I still can't see how the username appears in the conversation.

+4
source share
2

,

[SKTUser currentUser].firstName = @"Doctor";
[SKTUser currentUser].lastName = @"Who";
[[SKTUser currentUser] addProperties:@{ @"nickname" : @"Lil Big Daddy Slim", @"weight" : @650, @"premiumUser" : @YES }];

. http://docs.supportkit.io/#identifying-your-users

, SupportKit . , .

+2

SupportKit , , . , - ChatSecure. , , App Maker, .

0

Source: https://habr.com/ru/post/1599027/


All Articles