/ SDKs / Unreal
SDKs
Chat SDKs Unreal v3
Chat SDKs Unreal
Chat SDKs
Unreal
Version 3

Retrieve a channel by URL

Copy link

A channel url is a unique identifier of a group channel, which you can use to retrieve a channel instance.

Open channelGroup channel
SBDOpenChannel::GetChannel(CHANNEL_URL, [](SBDOpenChannel* openChannel, SBDError* error) {
    if (error != nullptr) {
        // Handle error.
        return;
    }
});

Note: We recommend that you save a user's channel URLs to handle the lifecycle or state changes of your app. For example, when a user is disconnected from the Sendbird server due to switching to another app temporarily, you can provide a smooth restoration of the user's state by using the saved URL to fetch the appropriate channel instance, then re-entering the user into the channel.