How can I create a public group channel?
Hello @Dimpy_Ahlawat
Creating a public group channel using the Sendbird Android UI Kit involves using the provided UI components and methods from the SDK to facilitate the channel creation process.
Sharing a sample code snippet for your reference:
// Step 1: Initialize Sendbird SDK in your application class or before using the UI Kit
SBUMain.init(applicationContext)
// Step 2: Connect the user
SBUMain.connect(USER_ID, ACCESS_TOKEN) { user, e ->
if (e != null) { // Handle error.
}
// Proceed to show channel creation UI if there's no error
}
// Step 3: Start the Channel Creation Activity
val intent = Intent(context, SBUGroupChannelCreateActivity::class.java)
startActivity(intent)```
For more detailed information, please refer: https://sendbird.com/docs/chat/uikit/v3/android/introduction/send-first-message#1-send-your-first-message
Sample application: https://github.com/sendbird/sendbird-uikit-android
Let me know if this helps.