You can obtain current active user data by using these methods:

Get Active User

Obtain current active user from cache.

#import <TapTalk/TapTalk.h>

TAPUserModel *tapTalkActiveUser = [[TapTalk sharedInstance] getTapTalkActiveUser];

Refresh Active User

Obtain current Retrieve latest active user data from the server.

#import <TapTalk/TapTalk.h>

[[TapTalk sharedInstance] refreshActiveUserWithSuccess:^{
    // Successfully updated active user data
} failure:^(NSError * _Nonnull error) {
    // Failed to update active user data

Update Active User Bio

You are able to update the active user's bio with a custom string by calling updateActiveUserBio from TapCoreContactManager class.

Successful update will be reflected in the bio field of the updated active user's data (

[[TAPCoreContactManager sharedManager] updateActiveUserBio:BIO_STRING success:^{
    // Successfully updated active user bio
} failure:^(NSError * _Nonnull error) {
    // Failed to update active user bio

Parameters BIO_STRING: (NSString *) custom string for active user bio

Last updated