Manage User Account

Send Feedback/Contact Us Info#

To send feedback information from the user, you can call the below method.

ContactManager.sendContactUsInfo(TITLE ,DESCRIPTION, (isSuccess, throwable, data) -> {
if (isSuccess) {
// Feedback data sent successfully
} else {
//Sending feedback data failed print throwable to find the exception details.
}
});
ArgumentTypeDescription
TITLEStringtitle for the feedback
DESCRIPTIONStringdetailed info about the feedback
CALLBACKFlyCallbackFlyCallback implemented as lambda expression

Delete Account#

To delete the chat account call the below method.

FlyCore.deleteAccount(REASON, FEEDBACK, (FlyCallback) (isSuccess, throwable, hashMap) -> {
if (isSuccess) {
// Chat account has been deleted and need to re-register again to send and receive message
} else {
// Delete chat account failed print throwable to find the exception details.
}
});
ArgumentTypeDescription
REASONStringreason for the account deletion
FEEDBACKStringdetailed feedback about the account deletion
CALLBACKFlyCallbackFlyCallback implemented as lambda expression
info

Deleting chat account will remove all informations(messages, groups and contacts) related to this chat account

Logout of Chat SDK#

To logout of the chat SDK call the below method.

FlyCore.logoutOfChatSDK((isSuccess, throwable, data) -> {
if (isSuccess) {
// User loged out of the chat sdk need to login again to send and receive message
} else {
// Logging out failed print throwable to find the exception details.
}
});
ArgumentTypeDescription
CALLBACKFlyCallbackFlyCallback implemented as lambda expression
caution

Once you are logged out you cannot establish a connection with chat server unless you login again.

info

Logout function will not clear messages and groups data in Chat database.

info

Sdk is having a built-in functions to prepare the JID, Group JID.

Clear all data in Chat SDK#

To clear all SDK data in the database and preference call the below method.

FlyCore.clearAllSDKData();

Invite a user#

if you want to invite a user to the chat app, you can utilise the below method.

ContactManager.inviteUserViaSMS(MOBILE_NUMBER ,MESSAGE );
ArgumentTypeDescription
MOBILE_NUMBERStringmobile number to send a invite message
MESSAGEStringinvite message content